/*! For license information please see Compression.js.LICENSE.txt */ (()=>{var __webpack_modules__={79742:(A,e)=>{"use strict";e.byteLength=function(A){var e=o(A),t=e[0],I=e[1];return 3*(t+I)/4-I},e.toByteArray=function(A){var e,t,i=o(A),g=i[0],n=i[1],a=new r(function(A,e,t){return 3*(e+t)/4-t}(0,g,n)),C=0,B=n>0?g-4:g;for(t=0;t>16&255,a[C++]=e>>8&255,a[C++]=255&e;return 2===n&&(e=I[A.charCodeAt(t)]<<2|I[A.charCodeAt(t+1)]>>4,a[C++]=255&e),1===n&&(e=I[A.charCodeAt(t)]<<10|I[A.charCodeAt(t+1)]<<4|I[A.charCodeAt(t+2)]>>2,a[C++]=e>>8&255,a[C++]=255&e),a},e.fromByteArray=function(A){for(var e,I=A.length,r=I%3,i=[],g=16383,n=0,o=I-r;no?o:n+g));return 1===r?(e=A[I-1],i.push(t[e>>2]+t[e<<4&63]+"==")):2===r&&(e=(A[I-2]<<8)+A[I-1],i.push(t[e>>10]+t[e>>4&63]+t[e<<2&63]+"=")),i.join("")};for(var t=[],I=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,n=i.length;g0)throw new Error("Invalid string. Length must be a multiple of 4");var t=A.indexOf("=");return-1===t&&(t=e),[t,t===e?0:4-t%4]}function a(A,e,I){for(var r,i,g=[],n=e;n>18&63]+t[i>>12&63]+t[i>>6&63]+t[63&i]);return g.join("")}I["-".charCodeAt(0)]=62,I["_".charCodeAt(0)]=63},48764:(A,e,t)=>{"use strict";const I=t(79742),r=t(80645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.INSPECT_MAX_BYTES=50;const g=2147483647;function n(A){if(A>g)throw new RangeError('The value "'+A+'" is invalid for option "size"');const e=new Uint8Array(A);return Object.setPrototypeOf(e,o.prototype),e}function o(A,e,t){if("number"==typeof A){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return B(A)}return a(A,e,t)}function a(A,e,t){if("string"==typeof A)return function(A,e){if("string"==typeof e&&""!==e||(e="utf8"),!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const t=0|Q(A,e);let I=n(t);const r=I.write(A,e);return r!==t&&(I=I.slice(0,r)),I}(A,e);if(ArrayBuffer.isView(A))return function(A){if(Z(A,Uint8Array)){const e=new Uint8Array(A);return E(e.buffer,e.byteOffset,e.byteLength)}return s(A)}(A);if(null==A)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(Z(A,ArrayBuffer)||A&&Z(A.buffer,ArrayBuffer))return E(A,e,t);if("undefined"!=typeof SharedArrayBuffer&&(Z(A,SharedArrayBuffer)||A&&Z(A.buffer,SharedArrayBuffer)))return E(A,e,t);if("number"==typeof A)throw new TypeError('The "value" argument must not be of type number. Received type number');const I=A.valueOf&&A.valueOf();if(null!=I&&I!==A)return o.from(I,e,t);const r=function(A){if(o.isBuffer(A)){const e=0|h(A.length),t=n(e);return 0===t.length||A.copy(t,0,0,e),t}return void 0!==A.length?"number"!=typeof A.length||j(A.length)?n(0):s(A):"Buffer"===A.type&&Array.isArray(A.data)?s(A.data):void 0}(A);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof A[Symbol.toPrimitive])return o.from(A[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}function C(A){if("number"!=typeof A)throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function B(A){return C(A),n(A<0?0:0|h(A))}function s(A){const e=A.length<0?0:0|h(A.length),t=n(e);for(let I=0;I=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return 0|A}function Q(A,e){if(o.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||Z(A,ArrayBuffer))return A.byteLength;if("string"!=typeof A)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);const t=A.length,I=arguments.length>2&&!0===arguments[2];if(!I&&0===t)return 0;let r=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return W(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return P(A).length;default:if(r)return I?-1:W(A).length;e=(""+e).toLowerCase(),r=!0}}function c(A,e,t){let I=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(e>>>=0))return"";for(A||(A="utf8");;)switch(A){case"hex":return G(this,e,t);case"utf8":case"utf-8":return S(this,e,t);case"ascii":return U(this,e,t);case"latin1":case"binary":return k(this,e,t);case"base64":return D(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,t);default:if(I)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),I=!0}}function u(A,e,t){const I=A[e];A[e]=A[t],A[t]=I}function f(A,e,t,I,r){if(0===A.length)return-1;if("string"==typeof t?(I=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),j(t=+t)&&(t=r?0:A.length-1),t<0&&(t=A.length+t),t>=A.length){if(r)return-1;t=A.length-1}else if(t<0){if(!r)return-1;t=0}if("string"==typeof e&&(e=o.from(e,I)),o.isBuffer(e))return 0===e.length?-1:l(A,e,t,I,r);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(A,e,t):Uint8Array.prototype.lastIndexOf.call(A,e,t):l(A,[e],t,I,r);throw new TypeError("val must be string, number or Buffer")}function l(A,e,t,I,r){let i,g=1,n=A.length,o=e.length;if(void 0!==I&&("ucs2"===(I=String(I).toLowerCase())||"ucs-2"===I||"utf16le"===I||"utf-16le"===I)){if(A.length<2||e.length<2)return-1;g=2,n/=2,o/=2,t/=2}function a(A,e){return 1===g?A[e]:A.readUInt16BE(e*g)}if(r){let I=-1;for(i=t;in&&(t=n-o),i=t;i>=0;i--){let t=!0;for(let I=0;Ir&&(I=r):I=r;const i=e.length;let g;for(I>i/2&&(I=i/2),g=0;g>8,r=t%256,i.push(r),i.push(I);return i}(e,A.length-t),A,t,I)}function D(A,e,t){return 0===e&&t===A.length?I.fromByteArray(A):I.fromByteArray(A.slice(e,t))}function S(A,e,t){t=Math.min(A.length,t);const I=[];let r=e;for(;r239?4:e>223?3:e>191?2:1;if(r+g<=t){let t,I,n,o;switch(g){case 1:e<128&&(i=e);break;case 2:t=A[r+1],128==(192&t)&&(o=(31&e)<<6|63&t,o>127&&(i=o));break;case 3:t=A[r+1],I=A[r+2],128==(192&t)&&128==(192&I)&&(o=(15&e)<<12|(63&t)<<6|63&I,o>2047&&(o<55296||o>57343)&&(i=o));break;case 4:t=A[r+1],I=A[r+2],n=A[r+3],128==(192&t)&&128==(192&I)&&128==(192&n)&&(o=(15&e)<<18|(63&t)<<12|(63&I)<<6|63&n,o>65535&&o<1114112&&(i=o))}}null===i?(i=65533,g=1):i>65535&&(i-=65536,I.push(i>>>10&1023|55296),i=56320|1023&i),I.push(i),r+=g}return function(A){const e=A.length;if(e<=m)return String.fromCharCode.apply(String,A);let t="",I=0;for(;II.length?(o.isBuffer(e)||(e=o.from(e)),e.copy(I,r)):Uint8Array.prototype.set.call(I,e,r);else{if(!o.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(I,r)}r+=e.length}return I},o.byteLength=Q,o.prototype._isBuffer=!0,o.prototype.swap16=function(){const A=this.length;if(A%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;et&&(A+=" ... "),""},i&&(o.prototype[i]=o.prototype.inspect),o.prototype.compare=function(A,e,t,I,r){if(Z(A,Uint8Array)&&(A=o.from(A,A.offset,A.byteLength)),!o.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(void 0===e&&(e=0),void 0===t&&(t=A?A.length:0),void 0===I&&(I=0),void 0===r&&(r=this.length),e<0||t>A.length||I<0||r>this.length)throw new RangeError("out of range index");if(I>=r&&e>=t)return 0;if(I>=r)return-1;if(e>=t)return 1;if(this===A)return 0;let i=(r>>>=0)-(I>>>=0),g=(t>>>=0)-(e>>>=0);const n=Math.min(i,g),a=this.slice(I,r),C=A.slice(e,t);for(let A=0;A>>=0,isFinite(t)?(t>>>=0,void 0===I&&(I="utf8")):(I=t,t=void 0)}const r=this.length-e;if((void 0===t||t>r)&&(t=r),A.length>0&&(t<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");let i=!1;for(;;)switch(I){case"hex":return y(this,A,e,t);case"utf8":case"utf-8":return p(this,A,e,t);case"ascii":case"latin1":case"binary":return w(this,A,e,t);case"base64":return d(this,A,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,A,e,t);default:if(i)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),i=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const m=4096;function U(A,e,t){let I="";t=Math.min(A.length,t);for(let r=e;rI)&&(t=I);let r="";for(let I=e;It)throw new RangeError("Trying to access beyond buffer length")}function b(A,e,t,I,r,i){if(!o.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||eA.length)throw new RangeError("Index out of range")}function M(A,e,t,I,r){T(e,I,r,A,t,7);let i=Number(e&BigInt(4294967295));A[t++]=i,i>>=8,A[t++]=i,i>>=8,A[t++]=i,i>>=8,A[t++]=i;let g=Number(e>>BigInt(32)&BigInt(4294967295));return A[t++]=g,g>>=8,A[t++]=g,g>>=8,A[t++]=g,g>>=8,A[t++]=g,t}function Y(A,e,t,I,r){T(e,I,r,A,t,7);let i=Number(e&BigInt(4294967295));A[t+7]=i,i>>=8,A[t+6]=i,i>>=8,A[t+5]=i,i>>=8,A[t+4]=i;let g=Number(e>>BigInt(32)&BigInt(4294967295));return A[t+3]=g,g>>=8,A[t+2]=g,g>>=8,A[t+1]=g,g>>=8,A[t]=g,t+8}function N(A,e,t,I,r,i){if(t+I>A.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function L(A,e,t,I,i){return e=+e,t>>>=0,i||N(A,0,t,4),r.write(A,e,t,I,23,4),t+4}function H(A,e,t,I,i){return e=+e,t>>>=0,i||N(A,0,t,8),r.write(A,e,t,I,52,8),t+8}o.prototype.slice=function(A,e){const t=this.length;(A=~~A)<0?(A+=t)<0&&(A=0):A>t&&(A=t),(e=void 0===e?t:~~e)<0?(e+=t)<0&&(e=0):e>t&&(e=t),e>>=0,e>>>=0,t||R(A,e,this.length);let I=this[A],r=1,i=0;for(;++i>>=0,e>>>=0,t||R(A,e,this.length);let I=this[A+--e],r=1;for(;e>0&&(r*=256);)I+=this[A+--e]*r;return I},o.prototype.readUint8=o.prototype.readUInt8=function(A,e){return A>>>=0,e||R(A,1,this.length),this[A]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(A,e){return A>>>=0,e||R(A,2,this.length),this[A]|this[A+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(A,e){return A>>>=0,e||R(A,2,this.length),this[A]<<8|this[A+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(A,e){return A>>>=0,e||R(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(A,e){return A>>>=0,e||R(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},o.prototype.readBigUInt64LE=z((function(A){x(A>>>=0,"offset");const e=this[A],t=this[A+7];void 0!==e&&void 0!==t||_(A,this.length-8);const I=e+256*this[++A]+65536*this[++A]+this[++A]*2**24,r=this[++A]+256*this[++A]+65536*this[++A]+t*2**24;return BigInt(I)+(BigInt(r)<>>=0,"offset");const e=this[A],t=this[A+7];void 0!==e&&void 0!==t||_(A,this.length-8);const I=e*2**24+65536*this[++A]+256*this[++A]+this[++A],r=this[++A]*2**24+65536*this[++A]+256*this[++A]+t;return(BigInt(I)<>>=0,e>>>=0,t||R(A,e,this.length);let I=this[A],r=1,i=0;for(;++i=r&&(I-=Math.pow(2,8*e)),I},o.prototype.readIntBE=function(A,e,t){A>>>=0,e>>>=0,t||R(A,e,this.length);let I=e,r=1,i=this[A+--I];for(;I>0&&(r*=256);)i+=this[A+--I]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*e)),i},o.prototype.readInt8=function(A,e){return A>>>=0,e||R(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},o.prototype.readInt16LE=function(A,e){A>>>=0,e||R(A,2,this.length);const t=this[A]|this[A+1]<<8;return 32768&t?4294901760|t:t},o.prototype.readInt16BE=function(A,e){A>>>=0,e||R(A,2,this.length);const t=this[A+1]|this[A]<<8;return 32768&t?4294901760|t:t},o.prototype.readInt32LE=function(A,e){return A>>>=0,e||R(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},o.prototype.readInt32BE=function(A,e){return A>>>=0,e||R(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},o.prototype.readBigInt64LE=z((function(A){x(A>>>=0,"offset");const e=this[A],t=this[A+7];void 0!==e&&void 0!==t||_(A,this.length-8);const I=this[A+4]+256*this[A+5]+65536*this[A+6]+(t<<24);return(BigInt(I)<>>=0,"offset");const e=this[A],t=this[A+7];void 0!==e&&void 0!==t||_(A,this.length-8);const I=(e<<24)+65536*this[++A]+256*this[++A]+this[++A];return(BigInt(I)<>>=0,e||R(A,4,this.length),r.read(this,A,!0,23,4)},o.prototype.readFloatBE=function(A,e){return A>>>=0,e||R(A,4,this.length),r.read(this,A,!1,23,4)},o.prototype.readDoubleLE=function(A,e){return A>>>=0,e||R(A,8,this.length),r.read(this,A,!0,52,8)},o.prototype.readDoubleBE=function(A,e){return A>>>=0,e||R(A,8,this.length),r.read(this,A,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(A,e,t,I){A=+A,e>>>=0,t>>>=0,I||b(this,A,e,t,Math.pow(2,8*t)-1,0);let r=1,i=0;for(this[e]=255&A;++i>>=0,t>>>=0,I||b(this,A,e,t,Math.pow(2,8*t)-1,0);let r=t-1,i=1;for(this[e+r]=255&A;--r>=0&&(i*=256);)this[e+r]=A/i&255;return e+t},o.prototype.writeUint8=o.prototype.writeUInt8=function(A,e,t){return A=+A,e>>>=0,t||b(this,A,e,1,255,0),this[e]=255&A,e+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(A,e,t){return A=+A,e>>>=0,t||b(this,A,e,2,65535,0),this[e]=255&A,this[e+1]=A>>>8,e+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(A,e,t){return A=+A,e>>>=0,t||b(this,A,e,2,65535,0),this[e]=A>>>8,this[e+1]=255&A,e+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(A,e,t){return A=+A,e>>>=0,t||b(this,A,e,4,4294967295,0),this[e+3]=A>>>24,this[e+2]=A>>>16,this[e+1]=A>>>8,this[e]=255&A,e+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(A,e,t){return A=+A,e>>>=0,t||b(this,A,e,4,4294967295,0),this[e]=A>>>24,this[e+1]=A>>>16,this[e+2]=A>>>8,this[e+3]=255&A,e+4},o.prototype.writeBigUInt64LE=z((function(A,e=0){return M(this,A,e,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeBigUInt64BE=z((function(A,e=0){return Y(this,A,e,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeIntLE=function(A,e,t,I){if(A=+A,e>>>=0,!I){const I=Math.pow(2,8*t-1);b(this,A,e,t,I-1,-I)}let r=0,i=1,g=0;for(this[e]=255&A;++r>0)-g&255;return e+t},o.prototype.writeIntBE=function(A,e,t,I){if(A=+A,e>>>=0,!I){const I=Math.pow(2,8*t-1);b(this,A,e,t,I-1,-I)}let r=t-1,i=1,g=0;for(this[e+r]=255&A;--r>=0&&(i*=256);)A<0&&0===g&&0!==this[e+r+1]&&(g=1),this[e+r]=(A/i>>0)-g&255;return e+t},o.prototype.writeInt8=function(A,e,t){return A=+A,e>>>=0,t||b(this,A,e,1,127,-128),A<0&&(A=255+A+1),this[e]=255&A,e+1},o.prototype.writeInt16LE=function(A,e,t){return A=+A,e>>>=0,t||b(this,A,e,2,32767,-32768),this[e]=255&A,this[e+1]=A>>>8,e+2},o.prototype.writeInt16BE=function(A,e,t){return A=+A,e>>>=0,t||b(this,A,e,2,32767,-32768),this[e]=A>>>8,this[e+1]=255&A,e+2},o.prototype.writeInt32LE=function(A,e,t){return A=+A,e>>>=0,t||b(this,A,e,4,2147483647,-2147483648),this[e]=255&A,this[e+1]=A>>>8,this[e+2]=A>>>16,this[e+3]=A>>>24,e+4},o.prototype.writeInt32BE=function(A,e,t){return A=+A,e>>>=0,t||b(this,A,e,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[e]=A>>>24,this[e+1]=A>>>16,this[e+2]=A>>>8,this[e+3]=255&A,e+4},o.prototype.writeBigInt64LE=z((function(A,e=0){return M(this,A,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeBigInt64BE=z((function(A,e=0){return Y(this,A,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeFloatLE=function(A,e,t){return L(this,A,e,!0,t)},o.prototype.writeFloatBE=function(A,e,t){return L(this,A,e,!1,t)},o.prototype.writeDoubleLE=function(A,e,t){return H(this,A,e,!0,t)},o.prototype.writeDoubleBE=function(A,e,t){return H(this,A,e,!1,t)},o.prototype.copy=function(A,e,t,I){if(!o.isBuffer(A))throw new TypeError("argument should be a Buffer");if(t||(t=0),I||0===I||(I=this.length),e>=A.length&&(e=A.length),e||(e=0),I>0&&I=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),A.length-e>>=0,t=void 0===t?this.length:t>>>0,A||(A=0),"number"==typeof A)for(r=e;r=I+4;t-=3)e=`_${A.slice(t-3,t)}${e}`;return`${A.slice(0,t)}${e}`}function T(A,e,t,I,r,i){if(A>t||A3?0===e||e===BigInt(0)?`>= 0${I} and < 2${I} ** ${8*(i+1)}${I}`:`>= -(2${I} ** ${8*(i+1)-1}${I}) and < 2 ** ${8*(i+1)-1}${I}`:`>= ${e}${I} and <= ${t}${I}`,new J.ERR_OUT_OF_RANGE("value",r,A)}!function(A,e,t){x(e,"offset"),void 0!==A[e]&&void 0!==A[e+t]||_(e,A.length-(t+1))}(I,r,i)}function x(A,e){if("number"!=typeof A)throw new J.ERR_INVALID_ARG_TYPE(e,"number",A)}function _(A,e,t){if(Math.floor(A)!==A)throw x(A,t),new J.ERR_OUT_OF_RANGE(t||"offset","an integer",A);if(e<0)throw new J.ERR_BUFFER_OUT_OF_BOUNDS;throw new J.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,A)}q("ERR_BUFFER_OUT_OF_BOUNDS",(function(A){return A?`${A} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),q("ERR_INVALID_ARG_TYPE",(function(A,e){return`The "${A}" argument must be of type number. Received type ${typeof e}`}),TypeError),q("ERR_OUT_OF_RANGE",(function(A,e,t){let I=`The value of "${A}" is out of range.`,r=t;return Number.isInteger(t)&&Math.abs(t)>2**32?r=K(String(t)):"bigint"==typeof t&&(r=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(r=K(r)),r+="n"),I+=` It must be ${e}. Received ${r}`,I}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function W(A,e){let t;e=e||1/0;const I=A.length;let r=null;const i=[];for(let g=0;g55295&&t<57344){if(!r){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(g+1===I){(e-=3)>-1&&i.push(239,191,189);continue}r=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),r=t;continue}t=65536+(r-55296<<10|t-56320)}else r&&(e-=3)>-1&&i.push(239,191,189);if(r=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,63&t|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return i}function P(A){return I.toByteArray(function(A){if((A=(A=A.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function O(A,e,t,I){let r;for(r=0;r=e.length||r>=A.length);++r)e[r+t]=A[r];return r}function Z(A,e){return A instanceof e||null!=A&&null!=A.constructor&&null!=A.constructor.name&&A.constructor.name===e.name}function j(A){return A!=A}const X=function(){const A="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){const I=16*t;for(let r=0;r<16;++r)e[I+r]=A[t]+A[r]}return e}();function z(A){return"undefined"==typeof BigInt?$:A}function $(){throw new Error("BigInt not supported")}},80645:(A,e)=>{e.read=function(A,e,t,I,r){var i,g,n=8*r-I-1,o=(1<>1,C=-7,B=t?r-1:0,s=t?-1:1,E=A[e+B];for(B+=s,i=E&(1<<-C)-1,E>>=-C,C+=n;C>0;i=256*i+A[e+B],B+=s,C-=8);for(g=i&(1<<-C)-1,i>>=-C,C+=I;C>0;g=256*g+A[e+B],B+=s,C-=8);if(0===i)i=1-a;else{if(i===o)return g?NaN:1/0*(E?-1:1);g+=Math.pow(2,I),i-=a}return(E?-1:1)*g*Math.pow(2,i-I)},e.write=function(A,e,t,I,r,i){var g,n,o,a=8*i-r-1,C=(1<>1,s=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,E=I?0:i-1,h=I?1:-1,Q=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(n=isNaN(e)?1:0,g=C):(g=Math.floor(Math.log(e)/Math.LN2),e*(o=Math.pow(2,-g))<1&&(g--,o*=2),(e+=g+B>=1?s/o:s*Math.pow(2,1-B))*o>=2&&(g++,o/=2),g+B>=C?(n=0,g=C):g+B>=1?(n=(e*o-1)*Math.pow(2,r),g+=B):(n=e*Math.pow(2,B-1)*Math.pow(2,r),g=0));r>=8;A[t+E]=255&n,E+=h,n/=256,r-=8);for(g=g<0;A[t+E]=255&g,E+=h,g/=256,a-=8);A[t+E-h]|=128*Q}},21128:(A,e,t)=>{var I=t(34155),r=t(48764).Buffer,i=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(A){A=void 0!==(A=A||{})?A:{};var e,i={};for(e in A)A.hasOwnProperty(e)&&(i[e]=A[e]);A.arguments=[],A.thisProgram="./this.program",A.quit=function(A,e){throw e},A.preRun=[],A.postRun=[];var g=!1,n=!1,o=!1;g="object"==typeof window,n="function"==typeof importScripts;var a,C,B="";(o="object"==typeof I&&!g&&!n)&&(B="//",A.read=function(A,e){var I;return(I=_A(A))||(a||(a=t(38784)),C||(C=t(62520)),A=C.normalize(A),I=a.readFileSync(A)),e?I:I.toString()},A.readBinary=function(e){var t,I=A.read(e,!0);return I.buffer||(I=new Uint8Array(I)),I.buffer||$A("Assertion failed: "+t),I},I.argv.length>1&&(A.thisProgram=I.argv[1].replace(/\\/g,"/")),A.arguments=I.argv.slice(2),I.on("uncaughtException",(function(A){if(!(A instanceof XA))throw A})),I.on("unhandledRejection",$A),A.quit=function(A){I.exit(A)},A.inspect=function(){return"[Emscripten Module object]"});var s=A.print||("undefined"!=typeof console?console.log.bind(console):"undefined"!=typeof print?print:null),E=A.printErr||("undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&console.warn.bind(console)||s);for(e in i)i.hasOwnProperty(e)&&(A[e]=i[e]);i=void 0;var h,Q={"f64-rem":function(A,e){return A%e},debugger:function(){}};new Array(0),"object"!=typeof WebAssembly&&E("no native wasm support detected");var c,u,f,l,y,p,w,d,F,D=!1,S="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function m(A,e,t){for(var I=e+t,r=e;A[r]&&!(r>=I);)++r;if(r-e>16&&A.subarray&&S)return S.decode(A.subarray(e,r));for(var i="";e>10,56320|1023&a)}}else i+=String.fromCharCode((31&g)<<6|n)}else i+=String.fromCharCode(g)}return i}function U(A,e){return A?m(f,A,e):""}function k(A,e){return A%e>0&&(A+=e-A%e),A}function G(){A.HEAP8=u=new Int8Array(c),A.HEAP16=l=new Int16Array(c),A.HEAP32=p=new Int32Array(c),A.HEAPU8=f=new Uint8Array(c),A.HEAPU16=y=new Uint16Array(c),A.HEAPU32=w=new Uint32Array(c),A.HEAPF32=d=new Float32Array(c),A.HEAPF64=F=new Float64Array(c)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var v=5242880,R=A.TOTAL_MEMORY||16777216;function b(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var I=t.func;"number"==typeof I?void 0===t.arg?A.dynCall_v(I):A.dynCall_vi(I,t.arg):I(void 0===t.arg?null:t.arg)}else t()}}R>2]},getStr:function(){return U(P.get())},get64:function(){var A=P.get();return P.get(),A},getZero:function(){P.get()}};function O(A){switch(A){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+A)}}var Z=void 0;function j(A){for(var e="",t=A;f[t];)e+=Z[f[t++]];return e}var X={},z={},$={},AA=48,eA=57;function tA(A){if(void 0===A)return"_unknown";var e=(A=A.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=AA&&e<=eA?"_"+A:A}function IA(A,e){return A=tA(A),new Function("body","return function "+A+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(e)}function rA(A,e){var t=IA(e,(function(A){this.name=e,this.message=A;var t=new Error(A).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(A.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},t}var iA=void 0;function gA(A){throw new iA(A)}var nA=void 0;function oA(A){throw new nA(A)}function aA(A,e,t){function I(e){var I=t(e);I.length!==A.length&&oA("Mismatched type converter count");for(var r=0;r>2])}function FA(A,e,t){if(e===t)return A;if(void 0===t.baseClass)return null;var I=FA(A,e,t.baseClass);return null===I?null:t.downcast(I)}var DA={};function SA(A,e){return e.ptrType&&e.ptr||oA("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&oA("Both smartPtrType and smartPtr must be specified"),e.count={value:1},Object.create(A,{$$:{value:e}})}function mA(A,e,t,I,r,i,g,n,o,a,C){this.name=A,this.registeredClass=e,this.isReference=t,this.isConst=I,this.isSmartPointer=r,this.pointeeType=i,this.sharingPolicy=g,this.rawGetPointee=n,this.rawConstructor=o,this.rawShare=a,this.rawDestructor=C,r||void 0!==e.baseClass?this.toWireType=pA:I?(this.toWireType=yA,this.destructorFunction=null):(this.toWireType=wA,this.destructorFunction=null)}function UA(e,t,I){A.hasOwnProperty(e)||oA("Replacing nonexistant public symbol"),void 0!==A[e].overloadTable&&void 0!==I?A[e].overloadTable[I]=t:(A[e]=t,A[e].argCount=I)}function kA(e,t){var I;if(e=j(e),void 0!==A["FUNCTION_TABLE_"+e])I=A["FUNCTION_TABLE_"+e][t];else if("undefined"!=typeof FUNCTION_TABLE)I=FUNCTION_TABLE[t];else{var r=A["dynCall_"+e];void 0===r&&void 0===(r=A["dynCall_"+e.replace(/f/g,"d")])&&gA("No dynCall invoker for signature: "+e),I=function(A){for(var I=[],r=1;r4&&0==--NA[A].refcount&&(NA[A]=void 0,YA.push(A))}function HA(A){switch(A){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=YA.length?YA.pop():NA.length;return NA[e]={refcount:1,value:A},e}}function JA(A){if(null===A)return"null";var e=typeof A;return"object"===e||"array"===e||"function"===e?A.toString():""+A}function qA(A,e){switch(e){case 2:return function(A){return this.fromWireType(d[A>>2])};case 3:return function(A){return this.fromWireType(F[A>>3])};default:throw new TypeError("Unknown float type: "+A)}}function KA(A,e,t){switch(e){case 0:return t?function(A){return u[A]}:function(A){return f[A]};case 1:return t?function(A){return l[A>>1]}:function(A){return y[A>>1]};case 2:return t?function(A){return p[A>>2]}:function(A){return w[A>>2]};default:throw new TypeError("Unknown integer type: "+A)}}function TA(){return u.length}!function(){for(var A=new Array(256),e=0;e<256;++e)A[e]=String.fromCharCode(e);Z=A}(),iA=A.BindingError=rA(Error,"BindingError"),nA=A.InternalError=rA(Error,"InternalError"),QA.prototype.isAliasOf=function(A){if(!(this instanceof QA))return!1;if(!(A instanceof QA))return!1;for(var e=this.$$.ptrType.registeredClass,t=this.$$.ptr,I=A.$$.ptrType.registeredClass,r=A.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;I.baseClass;)r=I.upcast(r),I=I.baseClass;return e===I&&t===r},QA.prototype.clone=function(){if(this.$$.ptr||BA(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var A,e=Object.create(Object.getPrototypeOf(this),{$$:{value:(A=this.$$,{count:A.count,deleteScheduled:A.deleteScheduled,preservePointerOnDelete:A.preservePointerOnDelete,ptr:A.ptr,ptrType:A.ptrType,smartPtr:A.smartPtr,smartPtrType:A.smartPtrType})}});return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},QA.prototype.delete=function(){var A;this.$$.ptr||BA(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&gA("Object already scheduled for deletion"),this.$$.count.value-=1,0===this.$$.count.value&&((A=this.$$).smartPtr?A.smartPtrType.rawDestructor(A.smartPtr):A.ptrType.registeredClass.rawDestructor(A.ptr)),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},QA.prototype.isDeleted=function(){return!this.$$.ptr},QA.prototype.deleteLater=function(){return this.$$.ptr||BA(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&gA("Object already scheduled for deletion"),EA.push(this),1===EA.length&&sA&&sA(hA),this.$$.deleteScheduled=!0,this},mA.prototype.getPointee=function(A){return this.rawGetPointee&&(A=this.rawGetPointee(A)),A},mA.prototype.destructor=function(A){this.rawDestructor&&this.rawDestructor(A)},mA.prototype.argPackAdvance=8,mA.prototype.readValueFromPointer=dA,mA.prototype.deleteObject=function(A){null!==A&&A.delete()},mA.prototype.fromWireType=function(A){var e=this.getPointee(A);if(!e)return this.destructor(A),null;var t=function(A,e){return e=function(A,e){for(void 0===e&&gA("ptr should not be undefined");A.baseClass;)e=A.upcast(e),A=A.baseClass;return e}(A,e),DA[e]}(this.registeredClass,e);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=e,t.$$.smartPtr=A,t.clone();var I=t.clone();return this.destructor(A),I}function r(){return this.isSmartPointer?SA(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:A}):SA(this.registeredClass.instancePrototype,{ptrType:this,ptr:A})}var i,g=this.registeredClass.getActualType(e),n=cA[g];if(!n)return r.call(this);i=this.isConst?n.constPointerType:n.pointerType;var o=FA(e,this.registeredClass,i.registeredClass);return null===o?r.call(this):this.isSmartPointer?SA(i.registeredClass.instancePrototype,{ptrType:i,ptr:o,smartPtrType:this,smartPtr:A}):SA(i.registeredClass.instancePrototype,{ptrType:i,ptr:o})},A.getInheritedInstanceCount=function(){return Object.keys(DA).length},A.getLiveInheritedInstances=function(){var A=[];for(var e in DA)DA.hasOwnProperty(e)&&A.push(DA[e]);return A},A.flushPendingDeletes=hA,A.setDelayFunction=function(A){sA=A,EA.length&&sA&&sA(hA)},GA=A.UnboundTypeError=rA(Error,"UnboundTypeError"),A.count_emval_handles=function(){for(var A=0,e=5;e>4,t=(15&r)<<4|(i=n.indexOf(A.charAt(a++)))>>2,I=(3&i)<<6|(g=n.indexOf(A.charAt(a++))),o+=String.fromCharCode(e),64!==i&&(o+=String.fromCharCode(t)),64!==g&&(o+=String.fromCharCode(I))}while(a>2]=e),e},u:function(A,e){P.varargs=e;try{var t=P.getStreamFromFD(),I=(P.get(),P.get()),r=P.get(),i=P.get(),g=I;return FS.llseek(t,g,i),p[r>>2]=t.position,t.getdents&&0===g&&0===i&&(t.getdents=null),0}catch(A){return"undefined"!=typeof FS&&A instanceof FS.ErrnoError||$A(A),-A.errno}},h:function(A,e){P.varargs=e;try{for(var t=P.get(),I=P.get(),r=P.get(),i=0,g=0;g>2],o=p[I+(8*g+4)>>2],a=0;a>i])},destructorFunction:null})},n:function(A,e,t,I,r,i,g,n,o,a,C,B,s){C=j(C),i=kA(r,i),n&&(n=kA(g,n)),a&&(a=kA(o,a)),s=kA(B,s);var E=tA(C);uA(E,(function(){RA("Cannot construct "+C+" due to unbound types",[I])})),aA([A,e,t],I?[I]:[],(function(e){var t,r;e=e[0],r=I?(t=e.registeredClass).instancePrototype:QA.prototype;var g=IA(E,(function(){if(Object.getPrototypeOf(this)!==o)throw new iA("Use 'new' to construct "+C);if(void 0===B.constructor_body)throw new iA(C+" has no accessible constructor");var A=B.constructor_body[arguments.length];if(void 0===A)throw new iA("Tried to invoke ctor of "+C+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(B.constructor_body).toString()+") parameters instead!");return A.apply(this,arguments)})),o=Object.create(r,{constructor:{value:g}});g.prototype=o;var B=new fA(C,g,o,s,t,i,n,a),h=new mA(C,B,!0,!1,!1),Q=new mA(C+"*",B,!1,!1,!1),c=new mA(C+" const*",B,!1,!0,!1);return cA[A]={pointerType:Q,constPointerType:c},UA(E,g),[h,Q,c]}))},e:function(A,e,t,I,r,i,g,n,o,a){e=j(e),r=kA(I,r),aA([],[A],(function(A){var I=(A=A[0]).name+"."+e,C={get:function(){RA("Cannot access "+I+" due to unbound types",[t,g])},enumerable:!0,configurable:!0};return C.set=o?function(){RA("Cannot access "+I+" due to unbound types",[t,g])}:function(A){gA(I+" is a read-only property")},Object.defineProperty(A.registeredClass.instancePrototype,e,C),aA([],o?[t,g]:[t],(function(t){var g=t[0],C={get:function(){var e=MA(this,A,I+" getter");return g.fromWireType(r(i,e))},enumerable:!0};if(o){o=kA(n,o);var B=t[1];C.set=function(e){var t=MA(this,A,I+" setter"),r=[];o(a,t,B.toWireType(r,e)),bA(r)}}return Object.defineProperty(A.registeredClass.instancePrototype,e,C),[]})),[]}))},m:function(A,e){CA(A,{name:e=j(e),fromWireType:function(A){var e=NA[A].value;return LA(A),e},toWireType:function(A,e){return HA(e)},argPackAdvance:8,readValueFromPointer:dA,destructorFunction:null})},g:function(A,e,t){var I=O(t);CA(A,{name:e=j(e),fromWireType:function(A){return A},toWireType:function(A,e){if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError('Cannot convert "'+JA(e)+'" to '+this.name);return e},argPackAdvance:8,readValueFromPointer:qA(e,I),destructorFunction:null})},k:function(A,e,t,I,r,i){var g=function(A,e){for(var t=[],I=0;I>2)+I]);return t}(e,t);A=j(A),r=kA(I,r),uA(A,(function(){RA("Cannot call "+A+" due to unbound types",g)}),e-1),aA([],g,(function(t){var I=[t[0],null].concat(t.slice(1));return UA(A,function(A,e,t,I,r){var i=e.length;i<2&&gA("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var g=null!==e[1]&&null!==t,n=!1,o=1;o0?", ":"")+B),s+=(a?"var rv = ":"")+"invoker(fn"+(B.length>0?", ":"")+B+");\n",n)s+="runDestructors(destructors);\n";else for(o=g?1:2;o>>n}}var o=-1!=e.indexOf("unsigned");CA(A,{name:e,fromWireType:g,toWireType:function(A,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+JA(t)+'" to '+this.name);if(tr)throw new TypeError('Passing a number "'+JA(t)+'" from JS side to C/C++ side to an argument of type "'+e+'", which is outside the valid range ['+I+", "+r+"]!");return o?t>>>0:0|t},argPackAdvance:8,readValueFromPointer:KA(e,i,0!==I),destructorFunction:null})},b:function(A,e,t){var I=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function r(A){var e=w,t=e[A>>=2],r=e[A+1];return new I(e.buffer,r,t)}CA(A,{name:t=j(t),fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{ignoreDuplicateRegistrations:!0})},j:function(A,e){var t="std::string"===(e=j(e));CA(A,{name:e,fromWireType:function(A){var e,I=w[A>>2];if(t){var r=f[A+4+I],i=0;0!=r&&(i=r,f[A+4+I]=0);for(var g=A+4,n=0;n<=I;++n){var o=A+4+n;if(0==f[o]){var a=U(g);void 0===e?e=a:(e+=String.fromCharCode(0),e+=a),g=o+1}}0!=i&&(f[A+4+I]=i)}else{var C=new Array(I);for(n=0;n=55296&&I<=57343&&(I=65536+((1023&I)<<10)|1023&A.charCodeAt(++t)),I<=127?++e:e+=I<=2047?2:I<=65535?3:4}return e}(e)}:function(){return e.length};var i=I(),g=ZA(4+i+1);if(w[g>>2]=i,t&&r)!function(A,e,t,I){if(!(I>0))return 0;for(var r=t+I-1,i=0;i=55296&&g<=57343&&(g=65536+((1023&g)<<10)|1023&A.charCodeAt(++i)),g<=127){if(t>=r)break;e[t++]=g}else if(g<=2047){if(t+1>=r)break;e[t++]=192|g>>6,e[t++]=128|63&g}else if(g<=65535){if(t+2>=r)break;e[t++]=224|g>>12,e[t++]=128|g>>6&63,e[t++]=128|63&g}else{if(t+3>=r)break;e[t++]=240|g>>18,e[t++]=128|g>>12&63,e[t++]=128|g>>6&63,e[t++]=128|63&g}}e[t]=0}(e,f,g+4,i+1);else if(r)for(var n=0;n255&&(OA(g),gA("String has UTF-16 code units that do not fit in 8 bits")),f[g+4+n]=o}else for(n=0;n>2],i=new Array(t),g=A+4>>r,n=0;n>2]=g;for(var o=n+4>>r,a=0;a4&&(NA[A].refcount+=1)},v:function(A,e){var t,I;return void 0===(I=z[t=A])&&gA("_emval_take_value has unknown type "+vA(t)),HA((A=I).readValueFromPointer(e))},f:function(){A.abort()},t:TA,s:function(A,e,t){f.set(f.subarray(e,e+t),A)},r:function(A){var e=TA(),t=2147418112;if(A>t)return!1;for(var I=Math.max(e,16777216);I0||(function(){if(A.preRun)for("function"==typeof A.preRun&&(A.preRun=[A.preRun]);A.preRun.length;)e=A.preRun.shift(),M.unshift(e);var e;b(M)}(),J>0||A.calledRun||(A.setStatus?(A.setStatus("Running..."),setTimeout((function(){setTimeout((function(){A.setStatus("")}),1),t()}),1)):t()))}function $A(e){throw A.onAbort&&A.onAbort(e),void 0!==e?(s(e),E(e),e=JSON.stringify(e)):e="",D=!0,"abort("+e+"). Build with -s ASSERTIONS=1 for more info."}if(A.dynCall_ii=function(){return A.asm.D.apply(null,arguments)},A.dynCall_iii=function(){return A.asm.E.apply(null,arguments)},A.dynCall_iiii=function(){return A.asm.F.apply(null,arguments)},A.dynCall_iiiii=function(){return A.asm.G.apply(null,arguments)},A.dynCall_v=function(){return A.asm.H.apply(null,arguments)},A.dynCall_vi=function(){return A.asm.I.apply(null,arguments)},A.dynCall_vii=function(){return A.asm.J.apply(null,arguments)},A.dynCall_viii=function(){return A.asm.K.apply(null,arguments)},A.dynCall_viiii=function(){return A.asm.L.apply(null,arguments)},A.dynCall_viiiii=function(){return A.asm.M.apply(null,arguments)},A.dynCall_viiiiii=function(){return A.asm.N.apply(null,arguments)},A.asm=WA,A.then=function(e){if(A.calledRun)e(A);else{var t=A.onRuntimeInitialized;A.onRuntimeInitialized=function(){t&&t(),e(A)}}return A},XA.prototype=new Error,XA.prototype.constructor=XA,K=function e(){A.calledRun||zA(),A.calledRun||(K=e)},A.run=zA,A.abort=$A,A.preInit)for("function"==typeof A.preInit&&(A.preInit=[A.preInit]);A.preInit.length>0;)A.preInit.pop()();return A.noExitRuntime=!0,zA(),A});A.exports=i},2043:function(A,e,t){var I,r;!function(i,g){"use strict";I=function(){var A=function(){},e="undefined",t=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),I=["trace","debug","info","warn","error"];function r(A,e){var t=A[e];if("function"==typeof t.bind)return t.bind(A);try{return Function.prototype.bind.call(t,A)}catch(e){return function(){return Function.prototype.apply.apply(t,[A,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function g(e,t){for(var r=0;r=0&&t<=n.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(i=t,!1!==r&&function(A){var t=(I[A]||"silent").toUpperCase();if(typeof window!==e&&a){try{return void(window.localStorage[a]=t)}catch(A){}try{window.document.cookie=encodeURIComponent(a)+"="+t+";"}catch(A){}}}(t),g.call(n,t,A),typeof console===e&&t{var I,r=function(){var A=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",I={};function r(A,e){if(!I[A]){I[A]={};for(var t=0;t>>8,t[2*I+1]=g%256}return t},decompressFromUint8Array:function(e){if(null==e)return i.decompress(e);for(var t=new Array(e.length/2),I=0,r=t.length;I>=1}else{for(r=1,I=0;I>=1}0==--B&&(B=Math.pow(2,E),E++),delete n[C]}else for(r=g[C],I=0;I>=1;0==--B&&(B=Math.pow(2,E),E++),g[a]=s++,C=String(o)}if(""!==C){if(Object.prototype.hasOwnProperty.call(n,C)){if(C.charCodeAt(0)<256){for(I=0;I>=1}else{for(r=1,I=0;I>=1}0==--B&&(B=Math.pow(2,E),E++),delete n[C]}else for(r=g[C],I=0;I>=1;0==--B&&(B=Math.pow(2,E),E++)}for(r=2,I=0;I>=1;for(;;){if(Q<<=1,c==e-1){h.push(t(Q));break}c++}return h.join("")},decompress:function(A){return null==A?"":""==A?null:i._decompress(A.length,32768,(function(e){return A.charCodeAt(e)}))},_decompress:function(e,t,I){var r,i,g,n,o,a,C,B=[],s=4,E=4,h=3,Q="",c=[],u={val:I(0),position:t,index:1};for(r=0;r<3;r+=1)B[r]=r;for(g=0,o=Math.pow(2,2),a=1;a!=o;)n=u.val&u.position,u.position>>=1,0==u.position&&(u.position=t,u.val=I(u.index++)),g|=(n>0?1:0)*a,a<<=1;switch(g){case 0:for(g=0,o=Math.pow(2,8),a=1;a!=o;)n=u.val&u.position,u.position>>=1,0==u.position&&(u.position=t,u.val=I(u.index++)),g|=(n>0?1:0)*a,a<<=1;C=A(g);break;case 1:for(g=0,o=Math.pow(2,16),a=1;a!=o;)n=u.val&u.position,u.position>>=1,0==u.position&&(u.position=t,u.val=I(u.index++)),g|=(n>0?1:0)*a,a<<=1;C=A(g);break;case 2:return""}for(B[3]=C,i=C,c.push(C);;){if(u.index>e)return"";for(g=0,o=Math.pow(2,h),a=1;a!=o;)n=u.val&u.position,u.position>>=1,0==u.position&&(u.position=t,u.val=I(u.index++)),g|=(n>0?1:0)*a,a<<=1;switch(C=g){case 0:for(g=0,o=Math.pow(2,8),a=1;a!=o;)n=u.val&u.position,u.position>>=1,0==u.position&&(u.position=t,u.val=I(u.index++)),g|=(n>0?1:0)*a,a<<=1;B[E++]=A(g),C=E-1,s--;break;case 1:for(g=0,o=Math.pow(2,16),a=1;a!=o;)n=u.val&u.position,u.position>>=1,0==u.position&&(u.position=t,u.val=I(u.index++)),g|=(n>0?1:0)*a,a<<=1;B[E++]=A(g),C=E-1,s--;break;case 2:return c.join("")}if(0==s&&(s=Math.pow(2,h),h++),B[C])Q=B[C];else{if(C!==E)return null;Q=i+i.charAt(0)}c.push(Q),B[E++]=i+Q.charAt(0),i=Q,0==--s&&(s=Math.pow(2,h),h++)}}};return i}();void 0===(I=function(){return r}.call(e,t,e,A))||(A.exports=I)},15405:(A,e,t)=>{var I=t(88887),r=t(66325),i=65536,g=B(5<<20),n=function(){try{return new Uint32Array(i)}catch(t){for(var A=new Array(i),e=0;e>4&7;if(void 0===C[g])throw new Error("invalid block size "+g);var n=C[g];if(i)return r.readU64(A,e);e++;for(var B=0;;){var s=r.readU32(A,e);if(e+=4,B+=s&a?s&=2147483647:n,0===s)return B;I&&(e+=4),e+=s}},e.makeBuffer=B,e.decompressBlock=function(A,e,t,I,r){var i,g,n,o,a;for(n=t+I;t>4;if(B>0){if(15===B)for(;B+=A[t],255===A[t++];);for(o=t+B;t=n)break;if(i=15&C,g=A[t++]|A[t++]<<8,15===i)for(;i+=A[t],255===A[t++];);for(o=(a=r-g)+(i+=4);a=13)for(var h=67;t+4>>0;if(g=i[c=(c>>16^c)>>>0&65535]-1,i[c]=t+1,g<0||t-g>>>16>0||r.readU32(A,g)!==Q)t+=h++>>6;else{for(h=67,C=t-n,a=t-g,g+=4,o=t+=4;t=15){for(e[B++]=240+u,E=C-15;E>=255;E-=255)e[B++]=255;e[B++]=E}else e[B++]=(C<<4)+u;for(var f=0;f>8,o>=15){for(E=o-15;E>=255;E-=255)e[B++]=255;e[B++]=E}n=t}}if(0===n)return 0;if((C=s-n)>=15){for(e[B++]=240,E=C-15;E>=255;E-=255)e[B++]=255;e[B++]=E}else e[B++]=C<<4;for(t=n;t>4&7;if(void 0===C[E])throw new Error("invalid block size");for(g&&(B+=8),B++;;){var h;if(h=r.readU32(A,B),B+=4,0===h)break;if(I&&(B+=4),0!=(h&a)){h&=2147483647;for(var Q=0;Q>8,a++;var B=C[7],s=A.length,E=0;for(function(A){for(var e=0;e0;){var h,Q=s>B?B:s;if((h=e.compressBlock(A,g,E,Q,n))>Q||0===h){r.writeU32(t,a,2147483648|Q),a+=4;for(var c=E+Q;E{e.hashU32=function(A){return-1252372727^(A=(A=(A=374761393+(A=-949894596^(A=2127912214+(A|=0)+(A<<12)|0)^A>>>19)+(A<<5)|0)-744332180^A<<9)-42973499+(A<<3)|0)^A>>>16|0},e.readU64=function(A,e){var t=0;return t|=A[e++]<<0,t|=A[e++]<<8,t|=A[e++]<<16,t|=A[e++]<<24,t|=A[e++]<<32,t|=A[e++]<<40,(t|=A[e++]<<48)|A[e++]<<56},e.readU32=function(A,e){var t=0;return t|=A[e++]<<0,t|=A[e++]<<8,(t|=A[e++]<<16)|A[e++]<<24},e.writeU32=function(A,e,t){A[e++]=t>>0&255,A[e++]=t>>8&255,A[e++]=t>>16&255,A[e++]=t>>24&255},e.imul=function(A,e){var t=65535&A,I=65535&e;return t*I+((A>>>16)*I+t*(e>>>16)<<16)|0}},88887:(A,e,t)=>{var I=t(66325),r=2654435761,i=2246822519,g=3266489917,n=668265263,o=374761393;function a(A,e){return(A|=0)>>>(32-(e|=0)|0)|A<>>(32-e|0)|A<>>(e|=0)^A|0}function s(A,e,t,r,i){return C(I.imul(e,t)+A,r,i)}function E(A,e,t){return C(A+I.imul(e[t],o),11,r)}function h(A,e,t){return s(A,I.readU32(e,t),g,17,n)}function Q(A,e,t){return[s(A[0],I.readU32(e,t+0),i,13,r),s(A[1],I.readU32(e,t+4),i,13,r),s(A[2],I.readU32(e,t+8),i,13,r),s(A[3],I.readU32(e,t+12),i,13,r)]}e.hash=function(A,e,t,n){var C,s;if(s=n,n>=16){for(C=[A+r+i,A+i,A,A-r];n>=16;)C=Q(C,e,t),t+=16,n-=16;C=a(C[0],1)+a(C[1],7)+a(C[2],12)+a(C[3],18)+s}else C=A+o+n>>>0;for(;n>=4;)C=h(C,e,t),t+=4,n-=4;for(;n>0;)C=E(C,e,t),t++,n--;return(C=B(I.imul(B(I.imul(B(C,15),i),13),g),16))>>>0}},62520:(A,e,t)=>{"use strict";var I=t(34155),r="win32"===I.platform,i=t(89539);function g(A,e){for(var t=[],I=0;I=0&&!A[I];I--);return 0===t&&I===e?A:t>I?[]:A.slice(t,I+1)}var o=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,a=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,C={};function B(A){var e=o.exec(A),t=(e[1]||"")+(e[2]||""),I=e[3]||"",r=a.exec(I);return[t,r[1],r[2],r[3]]}function s(A){var e=o.exec(A),t=e[1]||"",I=!!t&&":"!==t[1];return{device:t,isUnc:I,isAbsolute:I||!!e[2],tail:e[3]}}function E(A){return"\\\\"+A.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}C.resolve=function(){for(var A="",e="",t=!1,r=arguments.length-1;r>=-1;r--){var n;if(r>=0?n=arguments[r]:A?(n=I.env["="+A])&&n.substr(0,3).toLowerCase()===A.toLowerCase()+"\\"||(n=A+"\\"):n=I.cwd(),!i.isString(n))throw new TypeError("Arguments to path.resolve must be strings");if(n){var o=s(n),a=o.device,C=o.isUnc,B=o.isAbsolute,h=o.tail;if((!a||!A||a.toLowerCase()===A.toLowerCase())&&(A||(A=a),t||(e=h+"\\"+e,t=B),A&&t))break}}return C&&(A=E(A)),A+(t?"\\":"")+(e=g(e.split(/[\\\/]+/),!t).join("\\"))||"."},C.normalize=function(A){var e=s(A),t=e.device,I=e.isUnc,r=e.isAbsolute,i=e.tail,n=/[\\\/]$/.test(i);return(i=g(i.split(/[\\\/]+/),!r).join("\\"))||r||(i="."),i&&n&&(i+="\\"),I&&(t=E(t)),t+(r?"\\":"")+i},C.isAbsolute=function(A){return s(A).isAbsolute},C.join=function(){for(var A=[],e=0;e=-1&&!e;t--){var r=t>=0?arguments[t]:I.cwd();if(!i.isString(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(A=r+"/"+A,e="/"===r[0])}return(e?"/":"")+(A=g(A.split("/"),!e).join("/"))||"."},Q.normalize=function(A){var e=Q.isAbsolute(A),t=A&&"/"===A[A.length-1];return(A=g(A.split("/"),!e).join("/"))||e||(A="."),A&&t&&(A+="/"),(e?"/":"")+A},Q.isAbsolute=function(A){return"/"===A.charAt(0)},Q.join=function(){for(var A="",e=0;e{var e,t,I=A.exports={};function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function g(A){if(e===setTimeout)return setTimeout(A,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(A,0);try{return e(A,0)}catch(t){try{return e.call(null,A,0)}catch(t){return e.call(this,A,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:r}catch(A){e=r}try{t="function"==typeof clearTimeout?clearTimeout:i}catch(A){t=i}}();var n,o=[],a=!1,C=-1;function B(){a&&n&&(a=!1,n.length?o=n.concat(o):C=-1,o.length&&s())}function s(){if(!a){var A=g(B);a=!0;for(var e=o.length;e;){for(n=o,o=[];++C1)for(var t=1;t{!function(A){var e,t,I,r=String.fromCharCode;function i(A){for(var e,t,I=[],r=0,i=A.length;r=55296&&e<=56319&&r=55296&&A<=57343)throw Error("Lone surrogate U+"+A.toString(16).toUpperCase()+" is not a scalar value")}function n(A,e){return r(A>>e&63|128)}function o(A){if(0==(4294967168&A))return r(A);var e="";return 0==(4294965248&A)?e=r(A>>6&31|192):0==(4294901760&A)?(g(A),e=r(A>>12&15|224),e+=n(A,6)):0==(4292870144&A)&&(e=r(A>>18&7|240),e+=n(A,12),e+=n(A,6)),e+r(63&A|128)}function a(){if(I>=t)throw Error("Invalid byte index");var A=255&e[I];if(I++,128==(192&A))return 63&A;throw Error("Invalid continuation byte")}function C(){var A,r;if(I>t)throw Error("Invalid byte index");if(I==t)return!1;if(A=255&e[I],I++,0==(128&A))return A;if(192==(224&A)){if((r=(31&A)<<6|a())>=128)return r;throw Error("Invalid continuation byte")}if(224==(240&A)){if((r=(15&A)<<12|a()<<6|a())>=2048)return g(r),r;throw Error("Invalid continuation byte")}if(240==(248&A)&&(r=(7&A)<<18|a()<<12|a()<<6|a())>=65536&&r<=1114111)return r;throw Error("Invalid UTF-8 detected")}A.version="3.0.0",A.encode=function(A){for(var e=i(A),t=e.length,I=-1,r="";++I65535&&(i+=r((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=r(e);return i}(n)}}(e)},91496:A=>{"function"==typeof Object.create?A.exports=function(A,e){A.super_=e,A.prototype=Object.create(e.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}})}:A.exports=function(A,e){A.super_=e;var t=function(){};t.prototype=e.prototype,A.prototype=new t,A.prototype.constructor=A}},20384:A=>{A.exports=function(A){return A&&"object"==typeof A&&"function"==typeof A.copy&&"function"==typeof A.fill&&"function"==typeof A.readUInt8}},89539:(A,e,t)=>{var I=t(34155),r=/%[sdj%]/g;e.format=function(A){if(!u(A)){for(var e=[],t=0;t=i)return A;switch(A){case"%s":return String(I[t++]);case"%d":return Number(I[t++]);case"%j":try{return JSON.stringify(I[t++])}catch(A){return"[Circular]"}default:return A}})),o=I[t];t=3&&(I.depth=arguments[2]),arguments.length>=4&&(I.colors=arguments[3]),h(t)?I.showHidden=t:t&&e._extend(I,t),f(I.showHidden)&&(I.showHidden=!1),f(I.depth)&&(I.depth=2),f(I.colors)&&(I.colors=!1),f(I.customInspect)&&(I.customInspect=!0),I.colors&&(I.stylize=o),C(I,A,I.depth)}function o(A,e){var t=n.styles[e];return t?"["+n.colors[t][0]+"m"+A+"["+n.colors[t][1]+"m":A}function a(A,e){return A}function C(A,t,I){if(A.customInspect&&t&&d(t.inspect)&&t.inspect!==e.inspect&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(I,A);return u(r)||(r=C(A,r,I)),r}var i=function(A,e){if(f(e))return A.stylize("undefined","undefined");if(u(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(t,"string")}return c(e)?A.stylize(""+e,"number"):h(e)?A.stylize(""+e,"boolean"):Q(e)?A.stylize("null","null"):void 0}(A,t);if(i)return i;var g=Object.keys(t),n=function(A){var e={};return A.forEach((function(A,t){e[A]=!0})),e}(g);if(A.showHidden&&(g=Object.getOwnPropertyNames(t)),w(t)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return B(t);if(0===g.length){if(d(t)){var o=t.name?": "+t.name:"";return A.stylize("[Function"+o+"]","special")}if(l(t))return A.stylize(RegExp.prototype.toString.call(t),"regexp");if(p(t))return A.stylize(Date.prototype.toString.call(t),"date");if(w(t))return B(t)}var a,y="",F=!1,D=["{","}"];return E(t)&&(F=!0,D=["[","]"]),d(t)&&(y=" [Function"+(t.name?": "+t.name:"")+"]"),l(t)&&(y=" "+RegExp.prototype.toString.call(t)),p(t)&&(y=" "+Date.prototype.toUTCString.call(t)),w(t)&&(y=" "+B(t)),0!==g.length||F&&0!=t.length?I<0?l(t)?A.stylize(RegExp.prototype.toString.call(t),"regexp"):A.stylize("[Object]","special"):(A.seen.push(t),a=F?function(A,e,t,I,r){for(var i=[],g=0,n=e.length;g60?t[0]+(""===e?"":e+"\n ")+" "+A.join(",\n ")+" "+t[1]:t[0]+e+" "+A.join(", ")+" "+t[1]}(a,y,D)):D[0]+y+D[1]}function B(A){return"["+Error.prototype.toString.call(A)+"]"}function s(A,e,t,I,r,i){var g,n,o;if((o=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?n=o.set?A.stylize("[Getter/Setter]","special"):A.stylize("[Getter]","special"):o.set&&(n=A.stylize("[Setter]","special")),m(I,r)||(g="["+r+"]"),n||(A.seen.indexOf(o.value)<0?(n=Q(t)?C(A,o.value,null):C(A,o.value,t-1)).indexOf("\n")>-1&&(n=i?n.split("\n").map((function(A){return" "+A})).join("\n").substr(2):"\n"+n.split("\n").map((function(A){return" "+A})).join("\n")):n=A.stylize("[Circular]","special")),f(g)){if(i&&r.match(/^\d+$/))return n;(g=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=A.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=A.stylize(g,"string"))}return g+": "+n}function E(A){return Array.isArray(A)}function h(A){return"boolean"==typeof A}function Q(A){return null===A}function c(A){return"number"==typeof A}function u(A){return"string"==typeof A}function f(A){return void 0===A}function l(A){return y(A)&&"[object RegExp]"===F(A)}function y(A){return"object"==typeof A&&null!==A}function p(A){return y(A)&&"[object Date]"===F(A)}function w(A){return y(A)&&("[object Error]"===F(A)||A instanceof Error)}function d(A){return"function"==typeof A}function F(A){return Object.prototype.toString.call(A)}function D(A){return A<10?"0"+A.toString(10):A.toString(10)}e.debuglog=function(A){if(f(i)&&(i=I.env.NODE_DEBUG||""),A=A.toUpperCase(),!g[A])if(new RegExp("\\b"+A+"\\b","i").test(i)){var t=I.pid;g[A]=function(){var I=e.format.apply(e,arguments);console.error("%s %d: %s",A,t,I)}}else g[A]=function(){};return g[A]},e.inspect=n,n.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},n.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=E,e.isBoolean=h,e.isNull=Q,e.isNullOrUndefined=function(A){return null==A},e.isNumber=c,e.isString=u,e.isSymbol=function(A){return"symbol"==typeof A},e.isUndefined=f,e.isRegExp=l,e.isObject=y,e.isDate=p,e.isError=w,e.isFunction=d,e.isPrimitive=function(A){return null===A||"boolean"==typeof A||"number"==typeof A||"string"==typeof A||"symbol"==typeof A||void 0===A},e.isBuffer=t(20384);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function m(A,e){return Object.prototype.hasOwnProperty.call(A,e)}e.log=function(){var A,t;console.log("%s - %s",(t=[D((A=new Date).getHours()),D(A.getMinutes()),D(A.getSeconds())].join(":"),[A.getDate(),S[A.getMonth()],t].join(" ")),e.format.apply(e,arguments))},e.inherits=t(91496),e._extend=function(A,e){if(!e||!y(e))return A;for(var t=Object.keys(e),I=t.length;I--;)A[t[I]]=e[t[I]];return A}},80382:function(){(function(){"use strict";function A(A){throw A}var e=void 0,t=this;function I(A,I){var r,i=A.split("."),g=t;!(i[0]in g)&&g.execScript&&g.execScript("var "+i[0]);for(;i.length&&(r=i.shift());)i.length||I===e?g=g[r]?g[r]:g[r]={}:g[r]=I}var r,i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;for(new(i?Uint8Array:Array)(256),r=0;256>r;++r)for(var g=(g=r)>>>1;g;g>>>=1);function n(A,e,t){var I,r="number"==typeof e?e:e=0,i="number"==typeof t?t:A.length;for(I=-1,r=7&i;r--;++e)I=I>>>8^a[255&(I^A[e])];for(r=i>>3;r--;e+=8)I=(I=(I=(I=(I=(I=(I=(I=I>>>8^a[255&(I^A[e])])>>>8^a[255&(I^A[e+1])])>>>8^a[255&(I^A[e+2])])>>>8^a[255&(I^A[e+3])])>>>8^a[255&(I^A[e+4])])>>>8^a[255&(I^A[e+5])])>>>8^a[255&(I^A[e+6])])>>>8^a[255&(I^A[e+7])];return(4294967295^I)>>>0}var o=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],a=i?new Uint32Array(o):o;function C(){}function B(A){var e,t,I,r,g,n,o,a,C,B,s=A.length,E=0,h=Number.POSITIVE_INFINITY;for(a=0;aE&&(E=A[a]),A[a]>=1;for(B=I<<16|a,C=n;Cs;s++)switch(!0){case 143>=s:E.push([s+48,8]);break;case 255>=s:E.push([s-144+400,9]);break;case 279>=s:E.push([s-256+0,7]);break;case 287>=s:E.push([s-280+192,8]);break;default:A("invalid literal: "+s)}var h=function(){function e(e){switch(!0){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case 12>=e:return[265,e-11,1];case 14>=e:return[266,e-13,1];case 16>=e:return[267,e-15,1];case 18>=e:return[268,e-17,1];case 22>=e:return[269,e-19,2];case 26>=e:return[270,e-23,2];case 30>=e:return[271,e-27,2];case 34>=e:return[272,e-31,2];case 42>=e:return[273,e-35,3];case 50>=e:return[274,e-43,3];case 58>=e:return[275,e-51,3];case 66>=e:return[276,e-59,3];case 82>=e:return[277,e-67,4];case 98>=e:return[278,e-83,4];case 114>=e:return[279,e-99,4];case 130>=e:return[280,e-115,4];case 162>=e:return[281,e-131,5];case 194>=e:return[282,e-163,5];case 226>=e:return[283,e-195,5];case 257>=e:return[284,e-227,5];case 258===e:return[285,e-258,0];default:A("invalid length: "+e)}}var t,I,r=[];for(t=3;258>=t;t++)I=e(t),r[t]=I[2]<<24|I[1]<<16|I[0];return r}();function Q(e,t){switch(this.i=[],this.j=32768,this.d=this.f=this.c=this.n=0,this.input=i?new Uint8Array(e):e,this.o=!1,this.k=u,this.w=!1,!t&&(t={})||(t.index&&(this.c=t.index),t.bufferSize&&(this.j=t.bufferSize),t.bufferType&&(this.k=t.bufferType),t.resize&&(this.w=t.resize)),this.k){case c:this.a=32768,this.b=new(i?Uint8Array:Array)(32768+this.j+258);break;case u:this.a=0,this.b=new(i?Uint8Array:Array)(this.j),this.e=this.D,this.q=this.A,this.l=this.C;break;default:A(Error("invalid inflate mode"))}}i&&new Uint32Array(h);var c=0,u=1;Q.prototype.g=function(){for(;!this.o;){var t=N(this,3);switch(1&t&&(this.o=!0),t>>>=1){case 0:var I=this.input,r=this.c,g=this.b,n=this.a,o=I.length,a=e,C=g.length,s=e;switch(this.d=this.f=0,r+1>=o&&A(Error("invalid uncompressed block header: LEN")),a=I[r++]|I[r++]<<8,r+1>=o&&A(Error("invalid uncompressed block header: NLEN")),a===~(I[r++]|I[r++]<<8)&&A(Error("invalid uncompressed block header: length verify")),r+a>I.length&&A(Error("input buffer is broken")),this.k){case c:for(;n+a>g.length;){if(a-=s=C-n,i)g.set(I.subarray(r,r+s),n),n+=s,r+=s;else for(;s--;)g[n++]=I[r++];this.a=n,g=this.e(),n=this.a}break;case u:for(;n+a>g.length;)g=this.e({t:2});break;default:A(Error("invalid inflate mode"))}if(i)g.set(I.subarray(r,r+a),n),n+=a,r+=a;else for(;a--;)g[n++]=I[r++];this.c=r,this.a=n,this.b=g;break;case 1:this.l(b,Y);break;case 2:var E,h,Q,f,l=N(this,5)+257,y=N(this,5)+1,w=N(this,4)+4,d=new(i?Uint8Array:Array)(p.length),F=e,D=e,S=e,m=e,U=e;for(U=0;U=f?8:255>=f?9:279>=f?7:8;var v,R,b=B(G),M=new(i?Uint8Array:Array)(30);for(v=0,R=M.length;v=o&&A(Error("input buffer is broken")),r|=g[n++]<>>t,e.d=i-t,e.c=n,I}function L(e,t){for(var I,r,i=e.f,g=e.d,n=e.input,o=e.c,a=n.length,C=t[0],B=t[1];g=a);)i|=n[o++]<>>16)>g&&A(Error("invalid code length: "+r)),e.f=i>>r,e.d=g-r,e.c=o,65535&I}function H(A){this.input=A,this.c=0,this.m=[],this.s=!1}Q.prototype.l=function(A,e){var t=this.b,I=this.a;this.r=A;for(var r,i,g,n,o=t.length-258;256!==(r=L(this,A));)if(256>r)I>=o&&(this.a=I,t=this.e(),I=this.a),t[I++]=r;else for(n=d[i=r-257],0=o&&(this.a=I,t=this.e(),I=this.a);n--;)t[I]=t[I++-g];for(;8<=this.d;)this.d-=8,this.c--;this.a=I},Q.prototype.C=function(A,e){var t=this.b,I=this.a;this.r=A;for(var r,i,g,n,o=t.length;256!==(r=L(this,A));)if(256>r)I>=o&&(o=(t=this.e()).length),t[I++]=r;else for(n=d[i=r-257],0o&&(o=(t=this.e()).length);n--;)t[I]=t[I++-g];for(;8<=this.d;)this.d-=8,this.c--;this.a=I},Q.prototype.e=function(){var A,e,t=new(i?Uint8Array:Array)(this.a-32768),I=this.a-32768,r=this.b;if(i)t.set(r.subarray(32768,t.length));else for(A=0,e=t.length;AA;++A)r[A]=r[I+A];return this.a=32768,r},Q.prototype.D=function(A){var e,t,I,r=this.input.length/this.c+1|0,g=this.input,n=this.b;return A&&("number"==typeof A.t&&(r=A.t),"number"==typeof A.z&&(r+=A.z)),t=2>r?(I=(g.length-this.c)/this.r[2]/2*258|0)e&&(this.b.length=e),A=this.b),this.buffer=A},H.prototype.F=function(){return this.s||this.g(),this.m.slice()},H.prototype.g=function(){for(var t=this.input.length;this.c>>0,n(I,e,e)!==c&&A(Error("invalid CRC-32 checksum: 0x"+n(I,e,e).toString(16)+" / 0x"+c.toString(16))),g.L=o=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,(4294967295&I.length)!==o&&A(Error("invalid input size: "+(4294967295&I.length)+" / "+o)),this.m.push(g),this.c=f}this.s=!0;var l,y,p,w=this.m,d=0,F=0;for(l=0,y=w.length;l>>8&255]<<16|s[A>>>16&255]<<8|s[A>>>24&255])>>32-e:s[A]>>8-e),8>e+n)o=o<>e-I-1&1,8==++n&&(n=0,r[i++]=s[o],o=0,i===r.length&&(r=g(this)));r[i]=o,this.buffer=r,this.f=n,this.index=i},i.prototype.finish=function(){var A,e=this.buffer,t=this.index;return 0n;++n){for(var a=B=n,C=7,B=B>>>1;B;B>>>=1)a<<=1,a|=1&B,--C;o[n]=(a<>>0}var s=o;function E(A,e,t){var I,r="number"==typeof e?e:e=0,i="number"==typeof t?t:A.length;for(I=-1,r=7&i;r--;++e)I=I>>>8^Q[255&(I^A[e])];for(r=i>>3;r--;e+=8)I=(I=(I=(I=(I=(I=(I=(I=I>>>8^Q[255&(I^A[e])])>>>8^Q[255&(I^A[e+1])])>>>8^Q[255&(I^A[e+2])])>>>8^Q[255&(I^A[e+3])])>>>8^Q[255&(I^A[e+4])])>>>8^Q[255&(I^A[e+5])])>>>8^Q[255&(I^A[e+6])])>>>8^Q[255&(I^A[e+7])];return(4294967295^I)>>>0}var h=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],Q=r?new Uint32Array(h):h;function c(A){this.buffer=new(r?Uint16Array:Array)(2*A),this.length=0}function u(A,e){this.h=l,this.j=0,this.input=r&&A instanceof Array?new Uint8Array(A):A,this.c=0,e&&(e.lazy&&(this.j=e.lazy),"number"==typeof e.compressionType&&(this.h=e.compressionType),e.outputBuffer&&(this.a=r&&e.outputBuffer instanceof Array?new Uint8Array(e.outputBuffer):e.outputBuffer),"number"==typeof e.outputIndex&&(this.c=e.outputIndex)),this.a||(this.a=new(r?Uint8Array:Array)(32768))}c.prototype.getParent=function(A){return 2*((A-2)/4|0)},c.prototype.push=function(A,e){var t,I,r,i=this.buffer;for(t=this.length,i[this.length++]=e,i[this.length++]=A;0i[I]);)r=i[t],i[t]=i[I],i[I]=r,r=i[t+1],i[t+1]=i[I+1],i[I+1]=r,t=I;return this.length},c.prototype.pop=function(){var A,e,t,I,r,i=this.buffer;for(e=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],r=0;!((I=2*r+2)>=this.length)&&(I+2i[I]&&(I+=2),i[I]>i[r]);)t=i[r],i[r]=i[I],i[I]=t,t=i[r+1],i[r+1]=i[I+1],i[I+1]=t,r=I;return{index:A,value:e,length:this.length}};var f,l=2,y=[];for(f=0;288>f;f++)switch(e){case 143>=f:y.push([f+48,8]);break;case 255>=f:y.push([f-144+400,9]);break;case 279>=f:y.push([f-256+0,7]);break;case 287>=f:y.push([f-280+192,8]);break;default:throw"invalid literal: "+f}function p(A,e){this.length=A,this.k=e}u.prototype.g=function(){var t,I,g,n,o=this.input;switch(this.h){case 0:for(g=0,n=o.length;g>>8&255,c[u++]=255&B,c[u++]=B>>>8&255,r)c.set(s,u),u+=s.length,c=c.subarray(0,u);else{for(h=0,Q=s.length;hO)for(;0O?O:138)>O-3&&X=X?(eA[j++]=17,eA[j++]=X-3,tA[17]++):(eA[j++]=18,eA[j++]=X-11,tA[18]++),O-=X;else if(eA[j++]=AA[W],tA[AA[W]]++,3>--O)for(;0O?O:6)>O-3&&XK;K++)V[K]=L[_[K]];for(R=19;4=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:throw"invalid length: "+A}}var t,I,r=[];for(t=3;258>=t;t++)I=A(t),r[t]=I[2]<<24|I[1]<<16|I[0];return r}(),d=r?new Uint32Array(w):w;function F(t,I){function i(A,t){var I,r,i,g,n=A.k,o=[],a=0;switch(I=d[A.length],o[a++]=65535&I,o[a++]=I>>16&255,o[a++]=I>>24,e){case 1===n:r=[0,n-1,0];break;case 2===n:r=[1,n-2,0];break;case 3===n:r=[2,n-3,0];break;case 4===n:r=[3,n-4,0];break;case 6>=n:r=[4,n-5,1];break;case 8>=n:r=[5,n-7,1];break;case 12>=n:r=[6,n-9,2];break;case 16>=n:r=[7,n-13,2];break;case 24>=n:r=[8,n-17,3];break;case 32>=n:r=[9,n-25,3];break;case 48>=n:r=[10,n-33,4];break;case 64>=n:r=[11,n-49,4];break;case 96>=n:r=[12,n-65,5];break;case 128>=n:r=[13,n-97,5];break;case 192>=n:r=[14,n-129,6];break;case 256>=n:r=[15,n-193,6];break;case 384>=n:r=[16,n-257,7];break;case 512>=n:r=[17,n-385,7];break;case 768>=n:r=[18,n-513,8];break;case 1024>=n:r=[19,n-769,8];break;case 1536>=n:r=[20,n-1025,9];break;case 2048>=n:r=[21,n-1537,9];break;case 3072>=n:r=[22,n-2049,10];break;case 4096>=n:r=[23,n-3073,10];break;case 6144>=n:r=[24,n-4097,11];break;case 8192>=n:r=[25,n-6145,11];break;case 12288>=n:r=[26,n-8193,12];break;case 16384>=n:r=[27,n-12289,12];break;case 24576>=n:r=[28,n-16385,13];break;case 32768>=n:r=[29,n-24577,13];break;default:throw"invalid distance"}for(I=r,o[a++]=I[0],o[a++]=I[1],o[a++]=I[2],i=0,g=o.length;i=o;)l[o++]=0;for(o=0;29>=o;)y[o++]=0}for(l[256]=1,g=0,n=I.length;g=n){for(E&&i(E,-1),o=0,a=n-g;oi&&e+ia&&(r=I,a=i),258===i)break}return new p(a,e-r)}function S(A,e){var t,I,i,g,n,o=A.length,a=new c(572),C=new(r?Uint8Array:Array)(o);if(!r)for(g=0;g2*C[g-1]+B[g]&&(C[g]=2*C[g-1]+B[g]),E[g]=Array(C[g]),h[g]=Array(C[g]);for(i=0;iA[i]?(E[g][n]=o,h[g][n]=e,a+=2):(E[g][n]=A[i],h[g][n]=i,++i);Q[g]=0,1===B[g]&&I(g)}return s}(I,I.length,e),g=0,n=t.length;g>>=1;return g}function U(A,e){this.input=A,this.c=this.i=0,this.d={},e&&(e.flags&&(this.d=e.flags),"string"==typeof e.filename&&(this.filename=e.filename),"string"==typeof e.comment&&(this.l=e.comment),e.deflateOptions&&(this.e=e.deflateOptions)),this.e||(this.e={})}U.prototype.g=function(){var e,t,I,i,g,n,o,a,C=new(r?Uint8Array:Array)(32768),B=0,s=this.input,h=this.i,Q=this.filename,c=this.l;if(C[B++]=31,C[B++]=139,C[B++]=8,e=0,this.d.fname&&(e|=v),this.d.fcomment&&(e|=R),this.d.fhcrc&&(e|=G),C[B++]=e,t=(Date.now?Date.now():+new Date)/1e3|0,C[B++]=255&t,C[B++]=t>>>8&255,C[B++]=t>>>16&255,C[B++]=t>>>24&255,C[B++]=0,C[B++]=k,this.d.fname!==A){for(o=0,a=Q.length;o>>8&255),C[B++]=255&n;C[B++]=0}if(this.d.comment){for(o=0,a=c.length;o>>8&255),C[B++]=255&n;C[B++]=0}return this.d.fhcrc&&(I=65535&E(C,0,B),C[B++]=255&I,C[B++]=I>>>8&255),this.e.outputBuffer=C,this.e.outputIndex=B,C=(g=new u(s,this.e)).g(),B=g.c,r&&(B+8>C.buffer.byteLength?(this.a=new Uint8Array(B+8),this.a.set(new Uint8Array(C.buffer)),C=this.a):C=new Uint8Array(C.buffer)),i=E(s,A,A),C[B++]=255&i,C[B++]=i>>>8&255,C[B++]=i>>>16&255,C[B++]=i>>>24&255,a=s.length,C[B++]=255&a,C[B++]=a>>>8&255,C[B++]=a>>>16&255,C[B++]=a>>>24&255,this.i=h,r&&B>>8&255]<<16|s[A>>>16&255]<<8|s[A>>>24&255])>>32-e:s[A]>>8-e),8>e+n)o=o<>e-I-1&1,8==++n&&(n=0,r[i++]=s[o],o=0,i===r.length&&(r=g(this)));r[i]=o,this.buffer=r,this.d=n,this.index=i},i.prototype.finish=function(){var A,e=this.buffer,t=this.index;return 0n;++n){for(var a=B=n,C=7,B=B>>>1;B;B>>>=1)a<<=1,a|=1&B,--C;o[n]=(a<>>0}var s=o;function E(A){this.buffer=new(r?Uint16Array:Array)(2*A),this.length=0}function h(A,e){this.e=c,this.f=0,this.input=r&&A instanceof Array?new Uint8Array(A):A,this.c=0,e&&(e.lazy&&(this.f=e.lazy),"number"==typeof e.compressionType&&(this.e=e.compressionType),e.outputBuffer&&(this.b=r&&e.outputBuffer instanceof Array?new Uint8Array(e.outputBuffer):e.outputBuffer),"number"==typeof e.outputIndex&&(this.c=e.outputIndex)),this.b||(this.b=new(r?Uint8Array:Array)(32768))}E.prototype.getParent=function(A){return 2*((A-2)/4|0)},E.prototype.push=function(A,e){var t,I,r,i=this.buffer;for(t=this.length,i[this.length++]=e,i[this.length++]=A;0i[I]);)r=i[t],i[t]=i[I],i[I]=r,r=i[t+1],i[t+1]=i[I+1],i[I+1]=r,t=I;return this.length},E.prototype.pop=function(){var A,e,t,I,r,i=this.buffer;for(e=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],r=0;!((I=2*r+2)>=this.length)&&(I+2i[I]&&(I+=2),i[I]>i[r]);)t=i[r],i[r]=i[I],i[I]=t,t=i[r+1],i[r+1]=i[I+1],i[I+1]=t,r=I;return{index:A,value:e,length:this.length}};var Q,c=2,u=[];for(Q=0;288>Q;Q++)switch(e){case 143>=Q:u.push([Q+48,8]);break;case 255>=Q:u.push([Q-144+400,9]);break;case 279>=Q:u.push([Q-256+0,7]);break;case 287>=Q:u.push([Q-280+192,8]);break;default:throw"invalid literal: "+Q}function f(A,e){this.length=A,this.g=e}h.prototype.h=function(){var t,I,g,n,o=this.input;switch(this.e){case 0:for(g=0,n=o.length;g>>8&255,f[l++]=255&B,f[l++]=B>>>8&255,r)f.set(s,l),l+=s.length,f=f.subarray(0,l);else{for(h=0,Q=s.length;hO)for(;0O?O:138)>O-3&&X=X?(eA[j++]=17,eA[j++]=X-3,tA[17]++):(eA[j++]=18,eA[j++]=X-11,tA[18]++),O-=X;else if(eA[j++]=AA[W],tA[AA[W]]++,3>--O)for(;0O?O:6)>O-3&&XK;K++)V[K]=L[_[K]];for(R=19;4=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:throw"invalid length: "+A}}var t,I,r=[];for(t=3;258>=t;t++)I=A(t),r[t]=I[2]<<24|I[1]<<16|I[0];return r}(),y=r?new Uint32Array(l):l;function p(t,I){function i(A,t){var I,r,i,g,n=A.g,o=[],a=0;switch(I=y[A.length],o[a++]=65535&I,o[a++]=I>>16&255,o[a++]=I>>24,e){case 1===n:r=[0,n-1,0];break;case 2===n:r=[1,n-2,0];break;case 3===n:r=[2,n-3,0];break;case 4===n:r=[3,n-4,0];break;case 6>=n:r=[4,n-5,1];break;case 8>=n:r=[5,n-7,1];break;case 12>=n:r=[6,n-9,2];break;case 16>=n:r=[7,n-13,2];break;case 24>=n:r=[8,n-17,3];break;case 32>=n:r=[9,n-25,3];break;case 48>=n:r=[10,n-33,4];break;case 64>=n:r=[11,n-49,4];break;case 96>=n:r=[12,n-65,5];break;case 128>=n:r=[13,n-97,5];break;case 192>=n:r=[14,n-129,6];break;case 256>=n:r=[15,n-193,6];break;case 384>=n:r=[16,n-257,7];break;case 512>=n:r=[17,n-385,7];break;case 768>=n:r=[18,n-513,8];break;case 1024>=n:r=[19,n-769,8];break;case 1536>=n:r=[20,n-1025,9];break;case 2048>=n:r=[21,n-1537,9];break;case 3072>=n:r=[22,n-2049,10];break;case 4096>=n:r=[23,n-3073,10];break;case 6144>=n:r=[24,n-4097,11];break;case 8192>=n:r=[25,n-6145,11];break;case 12288>=n:r=[26,n-8193,12];break;case 16384>=n:r=[27,n-12289,12];break;case 24576>=n:r=[28,n-16385,13];break;case 32768>=n:r=[29,n-24577,13];break;default:throw"invalid distance"}for(I=r,o[a++]=I[0],o[a++]=I[1],o[a++]=I[2],i=0,g=o.length;i=o;)l[o++]=0;for(o=0;29>=o;)p[o++]=0}for(l[256]=1,g=0,n=I.length;g=n){for(E&&i(E,-1),o=0,a=n-g;oi&&e+ia&&(r=I,a=i),258===i)break}return new f(a,e-r)}function d(A,e){var t,I,i,g,n,o=A.length,a=new E(572),C=new(r?Uint8Array:Array)(o);if(!r)for(g=0;g2*C[g-1]+B[g]&&(C[g]=2*C[g-1]+B[g]),E[g]=Array(C[g]),h[g]=Array(C[g]);for(i=0;iA[i]?(E[g][n]=o,h[g][n]=e,a+=2):(E[g][n]=A[i],h[g][n]=i,++i);Q[g]=0,1===B[g]&&I(g)}return s}(I,I.length,e),g=0,n=t.length;g>>=1;return g}I("Zlib.RawDeflate",h),I("Zlib.RawDeflate.prototype.compress",h.prototype.h);var D,S,m,U,k={NONE:0,FIXED:1,DYNAMIC:c};if(Object.keys)D=Object.keys(k);else for(S in D=[],m=0,k)D[m++]=S;for(m=0,U=D.length;mE&&(E=A[a]),A[a]>=1;for(B=r<<16|a,C=n;C>>=1){case 0:var t=this.input,i=this.d,o=this.b,a=this.a,C=t.length,s=A,E=o.length,h=A;if(this.c=this.f=0,i+1>=C)throw Error("invalid uncompressed block header: LEN");if(s=t[i++]|t[i++]<<8,i+1>=C)throw Error("invalid uncompressed block header: NLEN");if(s===~(t[i++]|t[i++]<<8))throw Error("invalid uncompressed block header: length verify");if(i+s>t.length)throw Error("input buffer is broken");switch(this.i){case g:for(;a+s>o.length;){if(s-=h=E-a,I)o.set(t.subarray(i,i+h),a),a+=h,i+=h;else for(;h--;)o[a++]=t[i++];this.a=a,o=this.e(),a=this.a}break;case n:for(;a+s>o.length;)o=this.e({o:2});break;default:throw Error("invalid inflate mode")}if(I)o.set(t.subarray(i,i+s),a),a+=s,i+=s;else for(;s--;)o[a++]=t[i++];this.d=i,this.a=a,this.b=o;break;case 1:this.j(d,D);break;case 2:var Q,c,u,f,l=S(this,5)+257,y=S(this,5)+1,p=S(this,4)+4,w=new(I?Uint8Array:Array)(B.length),F=A,U=A,k=A,G=A,v=A;for(v=0;v=o?8:255>=o?9:279>=o?7:8;var p,w,d=r(y),F=new(I?Uint8Array:Array)(30);for(p=0,w=F.length;p=n)throw Error("input buffer is broken");I|=i[g++]<>>e,A.c=r-e,A.d=g,t}function m(A,e){for(var t,I,r=A.f,i=A.c,g=A.input,n=A.d,o=g.length,a=e[0],C=e[1];i=o);)r|=g[n++]<>>16)>i)throw Error("invalid code length: "+I);return A.f=r>>I,A.c=i-I,A.d=n,65535&t}i.prototype.j=function(A,e){var t=this.b,I=this.a;this.n=A;for(var r,i,g,n,o=t.length-258;256!==(r=m(this,A));)if(256>r)I>=o&&(this.a=I,t=this.e(),I=this.a),t[I++]=r;else for(n=E[i=r-257],0=o&&(this.a=I,t=this.e(),I=this.a);n--;)t[I]=t[I++-g];for(;8<=this.c;)this.c-=8,this.d--;this.a=I},i.prototype.s=function(A,e){var t=this.b,I=this.a;this.n=A;for(var r,i,g,n,o=t.length;256!==(r=m(this,A));)if(256>r)I>=o&&(o=(t=this.e()).length),t[I++]=r;else for(n=E[i=r-257],0o&&(o=(t=this.e()).length);n--;)t[I]=t[I++-g];for(;8<=this.c;)this.c-=8,this.d--;this.a=I},i.prototype.e=function(){var A,e,t=new(I?Uint8Array:Array)(this.a-32768),r=this.a-32768,i=this.b;if(I)t.set(i.subarray(32768,t.length));else for(A=0,e=t.length;AA;++A)i[A]=i[r+A];return this.a=32768,i},i.prototype.u=function(A){var e,t,r,i=this.input.length/this.d+1|0,g=this.input,n=this.b;return A&&("number"==typeof A.o&&(i=A.o),"number"==typeof A.q&&(i+=A.q)),t=2>i?(r=(g.length-this.d)/this.n[2]/2*258|0)e&&(this.b.length=e),A=this.b),this.buffer=A},t("Zlib.RawInflate",i),t("Zlib.RawInflate.prototype.decompress",i.prototype.t);var U,k,G,v,R={ADAPTIVE:n,BLOCK:g};if(Object.keys)U=Object.keys(R);else for(k in U=[],G=0,R)U[G++]=k;for(G=0,v=U.length;Gz;++z)for(var B=z,ba=7,B=B>>>1;B;B>>>=1)--ba;var ca=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],C=y?new Uint32Array(ca):ca,a;if(aa.Uint8Array!==r)try{eval("String.fromCharCode.apply(null, new Uint8Array([0]));")}catch(A){String.fromCharCode.apply=(a=String.fromCharCode.apply,function(A,e){return a.call(String.fromCharCode,A,Array.prototype.slice.call(e))})}function D(A){var e,t,I,r,i,g,n,o,a,C,B=A.length,s=0,E=Number.POSITIVE_INFINITY;for(o=0;os&&(s=A[o]),A[o]>=1;for(C=I<<16|o,a=g;aG;G++)switch(!0){case 143>=G:F.push([G+48,8]);break;case 255>=G:F.push([G-144+400,9]);break;case 279>=G:F.push([G-256+0,7]);break;case 287>=G:F.push([G-280+192,8]);break;default:l("invalid literal: "+G)}var fa=function(){function A(A){switch(!0){case 3===A:return[257,A-3,0];case 4===A:return[258,A-4,0];case 5===A:return[259,A-5,0];case 6===A:return[260,A-6,0];case 7===A:return[261,A-7,0];case 8===A:return[262,A-8,0];case 9===A:return[263,A-9,0];case 10===A:return[264,A-10,0];case 12>=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:l("invalid length: "+A)}}var e,t,I=[];for(e=3;258>=e;e++)t=A(e),I[e]=t[2]<<24|t[1]<<16|t[0];return I}();function I(A,e){switch(this.l=[],this.m=32768,this.d=this.f=this.c=this.t=0,this.input=y?new Uint8Array(A):A,this.u=!1,this.n=J,this.K=!1,!e&&(e={})||(e.index&&(this.c=e.index),e.bufferSize&&(this.m=e.bufferSize),e.bufferType&&(this.n=e.bufferType),e.resize&&(this.K=e.resize)),this.n){case ga:this.a=32768,this.b=new(y?Uint8Array:Array)(32768+this.m+258);break;case J:this.a=0,this.b=new(y?Uint8Array:Array)(this.m),this.e=this.W,this.B=this.R,this.q=this.V;break;default:l(Error("invalid inflate mode"))}}y&&new Uint32Array(fa);var ga=0,J=1;I.prototype.r=function(){for(;!this.u;){var A=K(this,3);switch(1&A&&(this.u=!0),A>>>=1){case 0:var e=this.input,t=this.c,I=this.b,i=this.a,g=e.length,n=r,o=I.length,a=r;switch(this.d=this.f=0,t+1>=g&&l(Error("invalid uncompressed block header: LEN")),n=e[t++]|e[t++]<<8,t+1>=g&&l(Error("invalid uncompressed block header: NLEN")),n===~(e[t++]|e[t++]<<8)&&l(Error("invalid uncompressed block header: length verify")),t+n>e.length&&l(Error("input buffer is broken")),this.n){case ga:for(;i+n>I.length;){if(n-=a=o-i,y)I.set(e.subarray(t,t+a),i),i+=a,t+=a;else for(;a--;)I[i++]=e[t++];this.a=i,I=this.e(),i=this.a}break;case J:for(;i+n>I.length;)I=this.e({H:2});break;default:l(Error("invalid inflate mode"))}if(y)I.set(e.subarray(t,t+n),i),i+=n,t+=n;else for(;n--;)I[i++]=e[t++];this.c=t,this.a=i,this.b=I;break;case 1:this.q(ha,ia);break;case 2:var C,B,s,E,h=K(this,5)+257,Q=K(this,5)+1,c=K(this,4)+4,u=new(y?Uint8Array:Array)(L.length),f=r,p=r,w=r,d=r,F=r;for(F=0;F=R?8:255>=R?9:279>=R?7:8;var ha=D(Q),S=new(y?Uint8Array:Array)(30),T,ra;for(T=0,ra=S.length;T=n&&l(Error("input buffer is broken")),I|=i[g++]<>>e,A.d=r-e,A.c=g,t}function M(A,e){for(var t,I,r=A.f,i=A.d,g=A.input,n=A.c,o=g.length,a=e[0],C=e[1];i=o);)r|=g[n++]<>>16)>i&&l(Error("invalid code length: "+I)),A.f=r>>I,A.d=i-I,A.c=n,65535&t}function U(A){A=A||{},this.files=[],this.v=A.comment}function V(A,e){e=e||{},this.input=y&&A instanceof Array?new Uint8Array(A):A,this.c=0,this.ba=e.verify||!1,this.j=e.password}t=I.prototype,t.q=function(A,e){var t=this.b,I=this.a;this.C=A;for(var r,i,g,n,o=t.length-258;256!==(r=M(this,A));)if(256>r)I>=o&&(this.a=I,t=this.e(),I=this.a),t[I++]=r;else for(n=la[i=r-257],0=o&&(this.a=I,t=this.e(),I=this.a);n--;)t[I]=t[I++-g];for(;8<=this.d;)this.d-=8,this.c--;this.a=I},t.V=function(A,e){var t=this.b,I=this.a;this.C=A;for(var r,i,g,n,o=t.length;256!==(r=M(this,A));)if(256>r)I>=o&&(o=(t=this.e()).length),t[I++]=r;else for(n=la[i=r-257],0o&&(o=(t=this.e()).length);n--;)t[I]=t[I++-g];for(;8<=this.d;)this.d-=8,this.c--;this.a=I},t.e=function(){var A,e,t=new(y?Uint8Array:Array)(this.a-32768),I=this.a-32768,r=this.b;if(y)t.set(r.subarray(32768,t.length));else for(A=0,e=t.length;AA;++A)r[A]=r[I+A];return this.a=32768,r},t.W=function(A){var e,t,I,r=this.input.length/this.c+1|0,i=this.input,g=this.b;return A&&("number"==typeof A.H&&(r=A.H),"number"==typeof A.P&&(r+=A.P)),t=2>r?(I=(i.length-this.c)/this.C[2]/2*258|0)e&&(this.b.length=e),A=this.b),this.buffer=A},U.prototype.L=function(A){this.j=A},U.prototype.s=function(A){var e=65535&A[2]|2;return e*(1^e)>>8&255},U.prototype.k=function(A,e){A[0]=(C[255&(A[0]^e)]^A[0]>>>8)>>>0,A[1]=1+(6681*(20173*(A[1]+(255&A[0]))>>>0)>>>0)>>>0,A[2]=(C[255&(A[2]^A[1]>>>24)]^A[2]>>>8)>>>0},U.prototype.T=function(A){var e,t,I=[305419896,591751049,878082192];for(y&&(I=new Uint32Array(I)),e=0,t=A.length;e>>0,this.z=(A[e++]|A[e++]<<8|A[e++]<<16|A[e++]<<24)>>>0,this.J=(A[e++]|A[e++]<<8|A[e++]<<16|A[e++]<<24)>>>0,this.h=A[e++]|A[e++]<<8,this.g=A[e++]|A[e++]<<8,this.F=A[e++]|A[e++]<<8,this.ea=A[e++]|A[e++]<<8,this.ga=A[e++]|A[e++]<<8,this.fa=A[e++]|A[e++]<<8|A[e++]<<16|A[e++]<<24,this.$=(A[e++]|A[e++]<<8|A[e++]<<16|A[e++]<<24)>>>0,this.filename=String.fromCharCode.apply(null,y?A.subarray(e,e+=this.h):A.slice(e,e+=this.h)),this.X=y?A.subarray(e,e+=this.g):A.slice(e,e+=this.g),this.v=y?A.subarray(e,e+this.F):A.slice(e,e+this.F),this.length=e-this.offset};var va={N:1,ca:8,da:2048};function $(A){var e,t,I,i,g=[],n={};if(!A.i){if(A.o===r){var o,a=A.input;if(!A.D)A:{var C,B=A.input;for(C=B.length-12;0>>0,A.o=(a[o++]|a[o++]<<8|a[o++]<<16|a[o++]<<24)>>>0,A.w=a[o++]|a[o++]<<8,A.v=y?a.subarray(o,o+A.w):a.slice(o,o+A.w)}for(e=A.o,I=0,i=A.aa;I>>0,this.z=(A[e++]|A[e++]<<8|A[e++]<<16|A[e++]<<24)>>>0,this.J=(A[e++]|A[e++]<<8|A[e++]<<16|A[e++]<<24)>>>0,this.h=A[e++]|A[e++]<<8,this.g=A[e++]|A[e++]<<8,this.filename=String.fromCharCode.apply(null,y?A.subarray(e,e+=this.h):A.slice(e,e+=this.h)),this.X=y?A.subarray(e,e+=this.g):A.slice(e,e+=this.g),this.length=e-this.offset},t=V.prototype,t.Y=function(){var A,e,t,I=[];for(this.i||$(this),A=0,e=(t=this.i).length;A>>8^C[255&(u^a[f])];for(p=w>>3;p--;f+=8)u=(u=(u=(u=(u=(u=(u=(u=u>>>8^C[255&(u^a[f])])>>>8^C[255&(u^a[f+1])])>>>8^C[255&(u^a[f+2])])>>>8^C[255&(u^a[f+3])])>>>8^C[255&(u^a[f+4])])>>>8^C[255&(u^a[f+5])])>>>8^C[255&(u^a[f+6])])>>>8^C[255&(u^a[f+7])];B=(4294967295^u)>>>0,g.p!==B&&l(Error("wrong crc: file=0x"+g.p.toString(16)+", data=0x"+B.toString(16)))}return a},t.L=function(A){this.j=A},t.k=U.prototype.k,t.S=U.prototype.T,t.s=U.prototype.s,v("Zlib.Unzip",V),v("Zlib.Unzip.prototype.decompress",V.prototype.r),v("Zlib.Unzip.prototype.getFilenames",V.prototype.Y),v("Zlib.Unzip.prototype.setPassword",V.prototype.L)}).call(this)},8832:function(){(function(){"use strict";var A=void 0,e=!0,t=this;function I(e,I){var r,i=e.split("."),g=t;!(i[0]in g)&&g.execScript&&g.execScript("var "+i[0]);for(;i.length&&(r=i.shift());)i.length||I===A?g=g[r]?g[r]:g[r]={}:g[r]=I}var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function i(A,e){if(this.index="number"==typeof e?e:0,this.f=0,this.buffer=A instanceof(r?Uint8Array:Array)?A:new(r?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&g(this)}function g(A){var e,t=A.buffer,I=t.length,i=new(r?Uint8Array:Array)(I<<1);if(r)i.set(t);else for(e=0;e>>8&255]<<16|s[A>>>16&255]<<8|s[A>>>24&255])>>32-e:s[A]>>8-e),8>e+n)o=o<>e-I-1&1,8==++n&&(n=0,r[i++]=s[o],o=0,i===r.length&&(r=g(this)));r[i]=o,this.buffer=r,this.f=n,this.index=i},i.prototype.finish=function(){var A,e=this.buffer,t=this.index;return 0n;++n){for(var a=B=n,C=7,B=B>>>1;B;B>>>=1)a<<=1,a|=1&B,--C;o[n]=(a<>>0}var s=o;function E(e){var t,I=A,r="number"==typeof I?I:I=0,i=e.length;for(t=-1,r=7&i;r--;++I)t=t>>>8^Q[255&(t^e[I])];for(r=i>>3;r--;I+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^Q[255&(t^e[I])])>>>8^Q[255&(t^e[I+1])])>>>8^Q[255&(t^e[I+2])])>>>8^Q[255&(t^e[I+3])])>>>8^Q[255&(t^e[I+4])])>>>8^Q[255&(t^e[I+5])])>>>8^Q[255&(t^e[I+6])])>>>8^Q[255&(t^e[I+7])];return(4294967295^t)>>>0}var h=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],Q=r?new Uint32Array(h):h;function c(A){this.buffer=new(r?Uint16Array:Array)(2*A),this.length=0}function u(A,e){this.k=l,this.l=0,this.input=r&&A instanceof Array?new Uint8Array(A):A,this.e=0,e&&(e.lazy&&(this.l=e.lazy),"number"==typeof e.compressionType&&(this.k=e.compressionType),e.outputBuffer&&(this.c=r&&e.outputBuffer instanceof Array?new Uint8Array(e.outputBuffer):e.outputBuffer),"number"==typeof e.outputIndex&&(this.e=e.outputIndex)),this.c||(this.c=new(r?Uint8Array:Array)(32768))}c.prototype.getParent=function(A){return 2*((A-2)/4|0)},c.prototype.push=function(A,e){var t,I,r,i=this.buffer;for(t=this.length,i[this.length++]=e,i[this.length++]=A;0i[I]);)r=i[t],i[t]=i[I],i[I]=r,r=i[t+1],i[t+1]=i[I+1],i[I+1]=r,t=I;return this.length},c.prototype.pop=function(){var A,e,t,I,r,i=this.buffer;for(e=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],r=0;!((I=2*r+2)>=this.length)&&(I+2i[I]&&(I+=2),i[I]>i[r]);)t=i[r],i[r]=i[I],i[I]=t,t=i[r+1],i[r+1]=i[I+1],i[I+1]=t,r=I;return{index:A,value:e,length:this.length}};var f,l=2,y=[];for(f=0;288>f;f++)switch(e){case 143>=f:y.push([f+48,8]);break;case 255>=f:y.push([f-144+400,9]);break;case 279>=f:y.push([f-256+0,7]);break;case 287>=f:y.push([f-280+192,8]);break;default:throw"invalid literal: "+f}function p(A,e){this.length=A,this.n=e}u.prototype.g=function(){var t,I,g,n,o=this.input;switch(this.k){case 0:for(g=0,n=o.length;g>>8&255,c[u++]=255&B,c[u++]=B>>>8&255,r)c.set(s,u),u+=s.length,c=c.subarray(0,u);else{for(h=0,Q=s.length;hO)for(;0O?O:138)>O-3&&X=X?(eA[j++]=17,eA[j++]=X-3,tA[17]++):(eA[j++]=18,eA[j++]=X-11,tA[18]++),O-=X;else if(eA[j++]=AA[W],tA[AA[W]]++,3>--O)for(;0O?O:6)>O-3&&XK;K++)V[K]=L[_[K]];for(R=19;4=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:throw"invalid length: "+A}}var t,I,r=[];for(t=3;258>=t;t++)I=A(t),r[t]=I[2]<<24|I[1]<<16|I[0];return r}(),d=r?new Uint32Array(w):w;function F(t,I){function i(A,t){var I,r,i,g,n=A.n,o=[],a=0;switch(I=d[A.length],o[a++]=65535&I,o[a++]=I>>16&255,o[a++]=I>>24,e){case 1===n:r=[0,n-1,0];break;case 2===n:r=[1,n-2,0];break;case 3===n:r=[2,n-3,0];break;case 4===n:r=[3,n-4,0];break;case 6>=n:r=[4,n-5,1];break;case 8>=n:r=[5,n-7,1];break;case 12>=n:r=[6,n-9,2];break;case 16>=n:r=[7,n-13,2];break;case 24>=n:r=[8,n-17,3];break;case 32>=n:r=[9,n-25,3];break;case 48>=n:r=[10,n-33,4];break;case 64>=n:r=[11,n-49,4];break;case 96>=n:r=[12,n-65,5];break;case 128>=n:r=[13,n-97,5];break;case 192>=n:r=[14,n-129,6];break;case 256>=n:r=[15,n-193,6];break;case 384>=n:r=[16,n-257,7];break;case 512>=n:r=[17,n-385,7];break;case 768>=n:r=[18,n-513,8];break;case 1024>=n:r=[19,n-769,8];break;case 1536>=n:r=[20,n-1025,9];break;case 2048>=n:r=[21,n-1537,9];break;case 3072>=n:r=[22,n-2049,10];break;case 4096>=n:r=[23,n-3073,10];break;case 6144>=n:r=[24,n-4097,11];break;case 8192>=n:r=[25,n-6145,11];break;case 12288>=n:r=[26,n-8193,12];break;case 16384>=n:r=[27,n-12289,12];break;case 24576>=n:r=[28,n-16385,13];break;case 32768>=n:r=[29,n-24577,13];break;default:throw"invalid distance"}for(I=r,o[a++]=I[0],o[a++]=I[1],o[a++]=I[2],i=0,g=o.length;i=o;)l[o++]=0;for(o=0;29>=o;)y[o++]=0}for(l[256]=1,g=0,n=I.length;g=n){for(E&&i(E,-1),o=0,a=n-g;oi&&e+ia&&(r=I,a=i),258===i)break}return new p(a,e-r)}function S(A,e){var t,I,i,g,n,o=A.length,a=new c(572),C=new(r?Uint8Array:Array)(o);if(!r)for(g=0;g2*C[g-1]+B[g]&&(C[g]=2*C[g-1]+B[g]),E[g]=Array(C[g]),h[g]=Array(C[g]);for(i=0;iA[i]?(E[g][n]=o,h[g][n]=e,a+=2):(E[g][n]=A[i],h[g][n]=i,++i);Q[g]=0,1===B[g]&&I(g)}return s}(I,I.length,e),g=0,n=t.length;g>>=1;return g}function U(A){A=A||{},this.files=[],this.d=A.comment}var k=[80,75,1,2],G=[80,75,3,4],v=[80,75,5,6];function R(A,e){var t,I=65535&A[2]|2;return t=I*(1^I)>>8&255,b(A,e),t^e}function b(A,e){A[0]=(Q[255&(A[0]^e)]^A[0]>>>8)>>>0,A[1]=1+(6681*(20173*(A[1]+(255&A[0]))>>>0)>>>0)>>>0,A[2]=(Q[255&(A[2]^A[1]>>>24)]^A[2]>>>8)>>>0}function M(A,e){var t,r,i,g;if(Object.keys)t=Object.keys(e);else for(r in t=[],i=0,e)t[i++]=r;for(i=0,g=t.length;im;++m)w[m]=R(F,11===D?255&t.h:256*Math.random()|0);for(U=w.length;m>8&255,C=t.a.compressionMethod,I[i++]=I[g++]=255&C,I[i++]=I[g++]=C>>8&255,B=t.a.date||new Date,I[i++]=I[g++]=(7&B.getMinutes())<<5|B.getSeconds()/2|0,I[i++]=I[g++]=B.getHours()<<3|B.getMinutes()>>3,I[i++]=I[g++]=(B.getMonth()+1&7)<<5|B.getDate(),I[i++]=I[g++]=(B.getFullYear()-1980&127)<<1|B.getMonth()+1>>3,s=t.h,I[i++]=I[g++]=255&s,I[i++]=I[g++]=s>>8&255,I[i++]=I[g++]=s>>16&255,I[i++]=I[g++]=s>>24&255,h=t.buffer.length,I[i++]=I[g++]=255&h,I[i++]=I[g++]=h>>8&255,I[i++]=I[g++]=h>>16&255,I[i++]=I[g++]=h>>24&255,Q=t.size,I[i++]=I[g++]=255&Q,I[i++]=I[g++]=Q>>8&255,I[i++]=I[g++]=Q>>16&255,I[i++]=I[g++]=Q>>24&255,I[i++]=I[g++]=255&c,I[i++]=I[g++]=c>>8&255,I[i++]=I[g++]=0,I[i++]=I[g++]=0,I[g++]=255&f,I[g++]=f>>8&255,I[g++]=0,I[g++]=0,I[g++]=0,I[g++]=0,I[g++]=0,I[g++]=0,I[g++]=0,I[g++]=0,I[g++]=255&o,I[g++]=o>>8&255,I[g++]=o>>16&255,I[g++]=o>>24&255,l=t.a.filename)if(r)I.set(l,i),I.set(l,g),i+=c,g+=c;else for(m=0;m>8&255,I[n++]=255&S,I[n++]=S>>8&255,I[n++]=255&N,I[n++]=N>>8&255,I[n++]=N>>16&255,I[n++]=N>>24&255,I[n++]=255&Y,I[n++]=Y>>8&255,I[n++]=Y>>16&255,I[n++]=Y>>24&255,f=this.d?this.d.length:0,I[n++]=255&f,I[n++]=f>>8&255,this.d)if(r)I.set(this.d,n);else for(m=0,U=f;m>>8&255]<<16|s[A>>>16&255]<<8|s[A>>>24&255])>>32-e:s[A]>>8-e),8>e+g)n=n<>e-I-1&1,8==++g&&(g=0,r[i++]=s[n],n=0,i===r.length&&(r=this.f()));r[i]=n,this.buffer=r,this.m=g,this.index=i},g.prototype.finish=function(){var A,e=this.buffer,t=this.index;return 0n;++n){for(var a=B=n,C=7,B=B>>>1;B;B>>>=1)a<<=1,a|=1&B,--C;o[n]=(a<>>0}var s=o;function E(A,e,t){var I,r="number"==typeof e?e:e=0,i="number"==typeof t?t:A.length;for(I=-1,r=7&i;r--;++e)I=I>>>8^Q[255&(I^A[e])];for(r=i>>3;r--;e+=8)I=(I=(I=(I=(I=(I=(I=(I=I>>>8^Q[255&(I^A[e])])>>>8^Q[255&(I^A[e+1])])>>>8^Q[255&(I^A[e+2])])>>>8^Q[255&(I^A[e+3])])>>>8^Q[255&(I^A[e+4])])>>>8^Q[255&(I^A[e+5])])>>>8^Q[255&(I^A[e+6])])>>>8^Q[255&(I^A[e+7])];return(4294967295^I)>>>0}var h=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],Q=i?new Uint32Array(h):h;function c(){}function u(A){this.buffer=new(i?Uint16Array:Array)(2*A),this.length=0}function f(A){var e,t,I,r,g,n,o,a,C,B,s=A.length,E=0,h=Number.POSITIVE_INFINITY;for(a=0;aE&&(E=A[a]),A[a]>=1;for(B=I<<16|a,C=n;Ci[I]);)r=i[t],i[t]=i[I],i[I]=r,r=i[t+1],i[t+1]=i[I+1],i[I+1]=r,t=I;return this.length},u.prototype.pop=function(){var A,e,t,I,r,i=this.buffer;for(e=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],r=0;!((I=2*r+2)>=this.length)&&(I+2i[I]&&(I+=2),i[I]>i[r]);)t=i[r],i[r]=i[I],i[I]=t,t=i[r+1],i[r+1]=i[I+1],i[I+1]=t,r=I;return{index:A,value:e,length:this.length}};var y,p=2,w={NONE:0,v:1,o:p,aa:3},d=[];for(y=0;288>y;y++)switch(t){case 143>=y:d.push([y+48,8]);break;case 255>=y:d.push([y-144+400,9]);break;case 279>=y:d.push([y-256+0,7]);break;case 287>=y:d.push([y-280+192,8]);break;default:A("invalid literal: "+y)}function F(A,e){this.length=A,this.P=e}l.prototype.g=function(){var I,r,n,o,a=this.input;switch(this.k){case 0:for(n=0,o=a.length;n>>8&255,u[f++]=255&s,u[f++]=s>>>8&255,i)u.set(E,f),f+=E.length,u=u.subarray(0,f);else{for(Q=0,c=E.length;QZ)for(;0Z?Z:138)>Z-3&&z=z?(tA[X++]=17,tA[X++]=z-3,IA[17]++):(tA[X++]=18,tA[X++]=z-11,IA[18]++),Z-=z;else if(tA[X++]=eA[P],IA[eA[P]]++,3>--Z)for(;0Z?Z:6)>Z-3&&zT;T++)W[T]=H[V[T]];for(b=19;4=e:return[265,e-11,1];case 14>=e:return[266,e-13,1];case 16>=e:return[267,e-15,1];case 18>=e:return[268,e-17,1];case 22>=e:return[269,e-19,2];case 26>=e:return[270,e-23,2];case 30>=e:return[271,e-27,2];case 34>=e:return[272,e-31,2];case 42>=e:return[273,e-35,3];case 50>=e:return[274,e-43,3];case 58>=e:return[275,e-51,3];case 66>=e:return[276,e-59,3];case 82>=e:return[277,e-67,4];case 98>=e:return[278,e-83,4];case 114>=e:return[279,e-99,4];case 130>=e:return[280,e-115,4];case 162>=e:return[281,e-131,5];case 194>=e:return[282,e-163,5];case 226>=e:return[283,e-195,5];case 257>=e:return[284,e-227,5];case 258===e:return[285,e-258,0];default:A("invalid length: "+e)}}var I,r,i=[];for(I=3;258>=I;I++)r=e(I),i[I]=r[2]<<24|r[1]<<16|r[0];return i}(),S=i?new Uint32Array(D):D;function m(I,r){function g(e,I){var r,i,g,n,o=e.P,a=[],C=0;switch(r=S[e.length],a[C++]=65535&r,a[C++]=r>>16&255,a[C++]=r>>24,t){case 1===o:i=[0,o-1,0];break;case 2===o:i=[1,o-2,0];break;case 3===o:i=[2,o-3,0];break;case 4===o:i=[3,o-4,0];break;case 6>=o:i=[4,o-5,1];break;case 8>=o:i=[5,o-7,1];break;case 12>=o:i=[6,o-9,2];break;case 16>=o:i=[7,o-13,2];break;case 24>=o:i=[8,o-17,3];break;case 32>=o:i=[9,o-25,3];break;case 48>=o:i=[10,o-33,4];break;case 64>=o:i=[11,o-49,4];break;case 96>=o:i=[12,o-65,5];break;case 128>=o:i=[13,o-97,5];break;case 192>=o:i=[14,o-129,6];break;case 256>=o:i=[15,o-193,6];break;case 384>=o:i=[16,o-257,7];break;case 512>=o:i=[17,o-385,7];break;case 768>=o:i=[18,o-513,8];break;case 1024>=o:i=[19,o-769,8];break;case 1536>=o:i=[20,o-1025,9];break;case 2048>=o:i=[21,o-1537,9];break;case 3072>=o:i=[22,o-2049,10];break;case 4096>=o:i=[23,o-3073,10];break;case 6144>=o:i=[24,o-4097,11];break;case 8192>=o:i=[25,o-6145,11];break;case 12288>=o:i=[26,o-8193,12];break;case 16384>=o:i=[27,o-12289,12];break;case 24576>=o:i=[28,o-16385,13];break;case 32768>=o:i=[29,o-24577,13];break;default:A("invalid distance")}for(r=i,a[C++]=r[0],a[C++]=r[1],a[C++]=r[2],g=0,n=a.length;g=a;)y[a++]=0;for(a=0;29>=a;)p[a++]=0}for(y[256]=1,n=0,o=r.length;n=o){for(h&&g(h,-1),a=0,C=o-n;ai&&e+ia&&(r=I,a=i),258===i)break}return new F(a,e-r)}function k(A,e){var t,I,r,g,n,o=A.length,a=new u(572),C=new(i?Uint8Array:Array)(o);if(!i)for(g=0;g2*C[g-1]+B[g]&&(C[g]=2*C[g-1]+B[g]),E[g]=Array(C[g]),h[g]=Array(C[g]);for(r=0;rA[r]?(E[g][n]=o,h[g][n]=e,a+=2):(E[g][n]=A[r],h[g][n]=r,++r);Q[g]=0,1===B[g]&&I(g)}return s}(I,I.length,e),g=0,n=t.length;g>>=1;return g}function v(A,e){this.input=A,this.b=this.c=0,this.i={},e&&(e.flags&&(this.i=e.flags),"string"==typeof e.filename&&(this.filename=e.filename),"string"==typeof e.comment&&(this.A=e.comment),e.deflateOptions&&(this.l=e.deflateOptions)),this.l||(this.l={})}v.prototype.g=function(){var A,t,I,r,g,n,o,a,C=new(i?Uint8Array:Array)(32768),B=0,s=this.input,h=this.c,Q=this.filename,c=this.A;if(C[B++]=31,C[B++]=139,C[B++]=8,A=0,this.i.fname&&(A|=M),this.i.fcomment&&(A|=Y),this.i.fhcrc&&(A|=b),C[B++]=A,t=(Date.now?Date.now():+new Date)/1e3|0,C[B++]=255&t,C[B++]=t>>>8&255,C[B++]=t>>>16&255,C[B++]=t>>>24&255,C[B++]=0,C[B++]=R,this.i.fname!==e){for(o=0,a=Q.length;o>>8&255),C[B++]=255&n;C[B++]=0}if(this.i.comment){for(o=0,a=c.length;o>>8&255),C[B++]=255&n;C[B++]=0}return this.i.fhcrc&&(I=65535&E(C,0,B),C[B++]=255&I,C[B++]=I>>>8&255),this.l.outputBuffer=C,this.l.outputIndex=B,C=(g=new l(s,this.l)).g(),B=g.b,i&&(B+8>C.buffer.byteLength?(this.a=new Uint8Array(B+8),this.a.set(new Uint8Array(C.buffer)),C=this.a):C=new Uint8Array(C.buffer)),r=E(s,e,e),C[B++]=255&r,C[B++]=r>>>8&255,C[B++]=r>>>16&255,C[B++]=r>>>24&255,a=s.length,C[B++]=255&a,C[B++]=a>>>8&255,C[B++]=a>>>16&255,C[B++]=a>>>24&255,this.c=h,i&&B>>=1){case 0:var r=this.input,g=this.c,n=this.a,o=this.b,a=r.length,C=e,B=n.length,s=e;switch(this.e=this.j=0,g+1>=a&&A(Error("invalid uncompressed block header: LEN")),C=r[g++]|r[g++]<<8,g+1>=a&&A(Error("invalid uncompressed block header: NLEN")),C===~(r[g++]|r[g++]<<8)&&A(Error("invalid uncompressed block header: length verify")),g+C>r.length&&A(Error("input buffer is broken")),this.r){case L:for(;o+C>n.length;){if(C-=s=B-o,i)n.set(r.subarray(g,g+s),o),o+=s,g+=s;else for(;s--;)n[o++]=r[g++];this.b=o,n=this.f(),o=this.b}break;case H:for(;o+C>n.length;)n=this.f({F:2});break;default:A(Error("invalid inflate mode"))}if(i)n.set(r.subarray(g,g+C),o),o+=C,g+=C;else for(;C--;)n[o++]=r[g++];this.c=g,this.b=o,this.a=n;break;case 1:this.s(eA,IA);break;case 2:var E,h,Q,c,u=rA(this,5)+257,l=rA(this,5)+1,y=rA(this,4)+4,p=new(i?Uint8Array:Array)(x.length),w=e,d=e,F=e,D=e,S=e;for(S=0;S=q?8:255>=q?9:279>=q?7:8;var $,AA,eA=f(z),tA=new(i?Uint8Array:Array)(30);for($=0,AA=tA.length;$=o&&A(Error("input buffer is broken")),r|=g[n++]<>>t,e.e=i-t,e.c=n,I}function iA(e,t){for(var I,r,i=e.j,g=e.e,n=e.input,o=e.c,a=n.length,C=t[0],B=t[1];g=a);)i|=n[o++]<>>16)>g&&A(Error("invalid code length: "+r)),e.j=i>>r,e.e=g-r,e.c=o,65535&I}function gA(A){this.input=A,this.c=0,this.t=[],this.D=!1}function nA(A){if("string"==typeof A){var e,t,I=A.split("");for(e=0,t=I.length;e>>0;A=I}for(var r,i=1,g=0,n=A.length,o=0;0>>0}function oA(e,t){var I,r;this.input=e,this.c=0,!t&&(t={})||(t.index&&(this.c=t.index),t.verify&&(this.Z=t.verify)),I=e[this.c++],r=e[this.c++],(15&I)===aA?this.method=aA:A(Error("unsupported compression method")),0!=((I<<8)+r)%31&&A(Error("invalid fcheck flag:"+((I<<8)+r)%31)),32&r&&A(Error("fdict flag is not supported")),this.K=new N(e,{index:this.c,bufferSize:t.bufferSize,bufferType:t.bufferType,resize:t.resize})}N.prototype.s=function(A,e){var t=this.a,I=this.b;this.C=A;for(var r,i,g,n,o=t.length-258;256!==(r=iA(this,A));)if(256>r)I>=o&&(this.b=I,t=this.f(),I=this.b),t[I++]=r;else for(n=V[i=r-257],0=o&&(this.b=I,t=this.f(),I=this.b);n--;)t[I]=t[I++-g];for(;8<=this.e;)this.e-=8,this.c--;this.b=I},N.prototype.S=function(A,e){var t=this.a,I=this.b;this.C=A;for(var r,i,g,n,o=t.length;256!==(r=iA(this,A));)if(256>r)I>=o&&(o=(t=this.f()).length),t[I++]=r;else for(n=V[i=r-257],0o&&(o=(t=this.f()).length);n--;)t[I]=t[I++-g];for(;8<=this.e;)this.e-=8,this.c--;this.b=I},N.prototype.f=function(){var A,e,t=new(i?Uint8Array:Array)(this.b-32768),I=this.b-32768,r=this.a;if(i)t.set(r.subarray(32768,t.length));else for(A=0,e=t.length;AA;++A)r[A]=r[I+A];return this.b=32768,r},N.prototype.T=function(A){var e,t,I,r=this.input.length/this.c+1|0,g=this.input,n=this.a;return A&&("number"==typeof A.F&&(r=A.F),"number"==typeof A.O&&(r+=A.O)),t=2>r?(I=(g.length-this.c)/this.C[2]/2*258|0)e&&(this.a.length=e),A=this.a),this.buffer=A},gA.prototype.W=function(){return this.D||this.h(),this.t.slice()},gA.prototype.h=function(){for(var I=this.input.length;this.c>>0,E(r,e,e)!==Q&&A(Error("invalid CRC-32 checksum: 0x"+E(r,e,e).toString(16)+" / 0x"+Q.toString(16))),n.ca=o=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,(4294967295&r.length)!==o&&A(Error("invalid input size: "+(4294967295&r.length)+" / "+o)),this.t.push(n),this.c=f}this.D=t;var l,y,p,w=this.t,d=0,F=0;for(l=0,y=w.length;l>>0!==nA(e)&&A(Error("invalid adler-32 checksum")),e};var aA=8;function CA(A,e){this.input=A,this.a=new(i?Uint8Array:Array)(32768),this.k=BA.o;var t,I={};for(t in!e&&(e={})||"number"!=typeof e.compressionType||(this.k=e.compressionType),e)I[t]=e[t];I.outputBuffer=this.a,this.J=new l(this.input,I)}var BA=w;function sA(A,e){var t,I,i,g;if(Object.keys)t=Object.keys(e);else for(I in t=[],i=0,e)t[i++]=I;for(i=0,g=t.length;i>24&255,o[a++]=n>>16&255,o[a++]=n>>8&255,o[a++]=255&n,o},r("Zlib.Inflate",oA),r("Zlib.Inflate.prototype.decompress",oA.prototype.h),sA("Zlib.Inflate.BufferType",{ADAPTIVE:J.M,BLOCK:J.N}),r("Zlib.Deflate",CA),r("Zlib.Deflate.compress",(function(A,e){return new CA(A,e).g()})),r("Zlib.Deflate.prototype.compress",CA.prototype.g),sA("Zlib.Deflate.CompressionType",{NONE:BA.NONE,FIXED:BA.v,DYNAMIC:BA.o}),r("Zlib.Gzip",v),r("Zlib.Gzip.prototype.compress",v.prototype.g),r("Zlib.Gunzip",gA),r("Zlib.Gunzip.prototype.decompress",gA.prototype.h),r("Zlib.Gunzip.prototype.getMembers",gA.prototype.W),r("Zlib.GunzipMember",c),r("Zlib.GunzipMember.prototype.getName",c.prototype.getName),r("Zlib.GunzipMember.prototype.getData",c.prototype.getData),r("Zlib.GunzipMember.prototype.getMtime",c.prototype.X)}).call(this)},38784:()=>{},17061:(A,e,t)=>{var I=t(18698).default;function r(){"use strict";A.exports=r=function(){return e},A.exports.__esModule=!0,A.exports.default=A.exports;var e={},t=Object.prototype,i=t.hasOwnProperty,g=Object.defineProperty||function(A,e,t){A[e]=t.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",C=n.toStringTag||"@@toStringTag";function B(A,e,t){return Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),A[e]}try{B({},"")}catch(A){B=function(A,e,t){return A[e]=t}}function s(A,e,t,I){var r=e&&e.prototype instanceof Q?e:Q,i=Object.create(r.prototype),n=new U(I||[]);return g(i,"_invoke",{value:F(A,t,n)}),i}function E(A,e,t){try{return{type:"normal",arg:A.call(e,t)}}catch(A){return{type:"throw",arg:A}}}e.wrap=s;var h={};function Q(){}function c(){}function u(){}var f={};B(f,o,(function(){return this}));var l=Object.getPrototypeOf,y=l&&l(l(k([])));y&&y!==t&&i.call(y,o)&&(f=y);var p=u.prototype=Q.prototype=Object.create(f);function w(A){["next","throw","return"].forEach((function(e){B(A,e,(function(A){return this._invoke(e,A)}))}))}function d(A,e){function t(r,g,n,o){var a=E(A[r],A,g);if("throw"!==a.type){var C=a.arg,B=C.value;return B&&"object"==I(B)&&i.call(B,"__await")?e.resolve(B.__await).then((function(A){t("next",A,n,o)}),(function(A){t("throw",A,n,o)})):e.resolve(B).then((function(A){C.value=A,n(C)}),(function(A){return t("throw",A,n,o)}))}o(a.arg)}var r;g(this,"_invoke",{value:function(A,I){function i(){return new e((function(e,r){t(A,I,e,r)}))}return r=r?r.then(i,i):i()}})}function F(A,e,t){var I="suspendedStart";return function(r,i){if("executing"===I)throw new Error("Generator is already running");if("completed"===I){if("throw"===r)throw i;return{value:void 0,done:!0}}for(t.method=r,t.arg=i;;){var g=t.delegate;if(g){var n=D(g,t);if(n){if(n===h)continue;return n}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===I)throw I="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);I="executing";var o=E(A,e,t);if("normal"===o.type){if(I=t.done?"completed":"suspendedYield",o.arg===h)continue;return{value:o.arg,done:t.done}}"throw"===o.type&&(I="completed",t.method="throw",t.arg=o.arg)}}}function D(A,e){var t=e.method,I=A.iterator[t];if(void 0===I)return e.delegate=null,"throw"===t&&A.iterator.return&&(e.method="return",e.arg=void 0,D(A,e),"throw"===e.method)||"return"!==t&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),h;var r=E(I,A.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var i=r.arg;return i?i.done?(e[A.resultName]=i.value,e.next=A.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(A){var e={tryLoc:A[0]};1 in A&&(e.catchLoc=A[1]),2 in A&&(e.finallyLoc=A[2],e.afterLoc=A[3]),this.tryEntries.push(e)}function m(A){var e=A.completion||{};e.type="normal",delete e.arg,A.completion=e}function U(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(S,this),this.reset(!0)}function k(A){if(A){var e=A[o];if(e)return e.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length)){var t=-1,I=function e(){for(;++t=0;--I){var r=this.tryEntries[I],g=r.completion;if("root"===r.tryLoc)return t("end");if(r.tryLoc<=this.prev){var n=i.call(r,"catchLoc"),o=i.call(r,"finallyLoc");if(n&&o){if(this.prev=0;--t){var I=this.tryEntries[t];if(I.tryLoc<=this.prev&&i.call(I,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===A)return this.complete(t.completion,t.afterLoc),m(t),h}},catch:function(A){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===A){var I=t.completion;if("throw"===I.type){var r=I.arg;m(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(A,e,t){return this.delegate={iterator:k(A),resultName:e,nextLoc:t},"next"===this.method&&(this.arg=void 0),h}},e}A.exports=r,A.exports.__esModule=!0,A.exports.default=A.exports},18698:A=>{function e(t){return A.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},A.exports.__esModule=!0,A.exports.default=A.exports,e(t)}A.exports=e,A.exports.__esModule=!0,A.exports.default=A.exports},64687:(A,e,t)=>{var I=t(17061)();A.exports=I;try{regeneratorRuntime=I}catch(A){"object"==typeof globalThis?globalThis.regeneratorRuntime=I:Function("r","regeneratorRuntime = r")(I)}}},__webpack_module_cache__={};function __webpack_require__(A){var e=__webpack_module_cache__[A];if(void 0!==e)return e.exports;var t=__webpack_module_cache__[A]={exports:{}};return __webpack_modules__[A].call(t.exports,t,t.exports,__webpack_require__),t.exports}__webpack_require__.n=A=>{var e=A&&A.__esModule?()=>A.default:()=>A;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(A,e)=>{for(var t in e)__webpack_require__.o(e,t)&&!__webpack_require__.o(A,t)&&Object.defineProperty(A,t,{enumerable:!0,get:e[t]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(A){if("object"==typeof window)return window}}(),__webpack_require__.o=(A,e)=>Object.prototype.hasOwnProperty.call(A,e);var __webpack_exports__={};(()=>{"use strict";function A(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,I=new Array(e);t1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=";if(!A)return"";if("string"==typeof A&&(A=b.strToArrayBuffer(A)),A instanceof ArrayBuffer&&(A=new Uint8Array(A)),64!==(e=b.expandAlphRange(e).join("")).length&&65!==e.length)throw new p(`Invalid Base64 alphabet length (${e.length}): ${e}`);for(var t,I,r,i,g,n,o,a="",C=0;C>2,g=(3&t)<<4|(I=A[C++])>>4,n=(15&I)<<2|(r=A[C++])>>6,o=63&r,isNaN(I)?n=o=64:isNaN(r)&&(o=64),a+=e.charAt(i)+e.charAt(g)+e.charAt(n)+e.charAt(o);return a}function d(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",I=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!A)return"string"===t?"":[];if(e=e||"A-Za-z0-9+/=",64!==(e=b.expandAlphRange(e).join("")).length&&65!==e.length)throw new p(`Error: Base64 alphabet should be 64 characters long, or 65 with a padding character. Found ${e.length}: ${e}`);if(I){var i=new RegExp("[^"+e.replace(/[[\]\\\-^$]/g,"\\$&")+"]","g");A=A.replace(i,"")}if(r){if(A.length%4==1)throw new p(`Error: Invalid Base64 input length (${A.length}). Cannot be 4n+1, even without padding chars.`);if(65===e.length){var g=e.charAt(64),n=A.indexOf(g);if(n>=0){if(n>2,C=(3&E)<<6|h,(o=B<<2|s>>4)>=0&&o<256&&Q.push(o),a>=0&&a<256&&64!==E&&Q.push(a),C>=0&&C<256&&64!==h&&Q.push(C)}return"string"===t?b.byteArrayToUtf8(Q):Q}function F(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(t<1||Math.round(t)!==t)throw new p("Byte length must be a positive integer");if("None"!==e){var I="Auto"===e?/[^a-f\d]|0x/gi:b.regexRep(e);A=A.split(I)}else A=[A];for(var r=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:"Auto";e=b.charRep(e);var t=[],I=A.split(e);""===I[I.length-1]&&(I=I.slice(0,I.length-1));for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"Space",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;if(t<1||Math.round(t)!==t)throw new p("Byte length must be a positive integer");var I=b.regexRep(e);A=A.replace(I,"");for(var r=[],i=0;i65535){A-=65536;var e=String.fromCharCode(A>>>10&1023|55296);return A=56320|1023&A,e+String.fromCharCode(A)}return String.fromCharCode(A)}},{key:"ord",value:function(A){if(2===A.length){var e=A.charCodeAt(0),t=A.charCodeAt(1);if(e>=55296&&e<56320&&t>=56320&&t<57344)return 1024*(e-55296)+t-56320+65536}return A.charCodeAt(0)}},{key:"padBytesRight",value:function(A,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,I=new Array(e);return I.fill(t),c(A).forEach((function(A,e){I[e]=A})),I}},{key:"truncate",value:function(A,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return A.length>e&&(A=A.slice(0,e-t.length)+t),A}},{key:"hex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(e="string"==typeof e?A.ord(e):e).toString(16).padStart(t,"0")}},{key:"bin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return(e="string"==typeof e?A.ord(e):e).toString(2).padStart(t,"0")}},{key:"printable",value:function(A){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?A.replace(/[^\x20-\x7f]/g,"."):(A=A.replace(/[\0-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F\xAD\u0378\u0379\u037F-\u0383\u038B\u038D\u03A2\u0528-\u0530\u0557\u0558\u0560\u0588\u058B-\u058E\u0590\u05C8-\u05CF\u05EB-\u05EF\u05F5-\u0605\u061C\u061D\u06DD\u070E\u070F\u074B\u074C\u07B2-\u07BF\u07FB-\u07FF\u082E\u082F\u083F\u085C\u085D\u085F-\u089F\u08A1\u08AD-\u08E3\u08FF\u0978\u0980\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09FC-\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF2-\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B78-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BFB-\u0C00\u0C04\u0C0D\u0C11\u0C29\u0C34\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5A-\u0C5F\u0C64\u0C65\u0C70-\u0C77\u0C80\u0C81\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0D01\u0D04\u0D0D\u0D11\u0D3B\u0D3C\u0D45\u0D49\u0D4F-\u0D56\u0D58-\u0D5F\u0D64\u0D65\u0D76-\u0D78\u0D80\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF5-\u0E00\u0E3B-\u0E3E\u0E5C-\u0E80\u0E83\u0E85\u0E86\u0E89\u0E8B\u0E8C\u0E8E-\u0E93\u0E98\u0EA0\u0EA4\u0EA6\u0EA8\u0EA9\u0EAC\u0EBA\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F48\u0F6D-\u0F70\u0F98\u0FBD\u0FCD\u0FDB-\u0FFF\u10C6\u10C8-\u10CC\u10CE\u10CF\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u137D-\u137F\u139A-\u139F\u13F5-\u13FF\u169D-\u169F\u16F1-\u16FF\u170D\u1715-\u171F\u1737-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17DE\u17DF\u17EA-\u17EF\u17FA-\u17FF\u180F\u181A-\u181F\u1878-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191D-\u191F\u192C-\u192F\u193C-\u193F\u1941-\u1943\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19DD\u1A1C\u1A1D\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1A9F\u1AAE-\u1AFF\u1B4C-\u1B4F\u1B7D-\u1B7F\u1BF4-\u1BFB\u1C38-\u1C3A\u1C4A-\u1C4C\u1C80-\u1CBF\u1CC8-\u1CCF\u1CF7-\u1CFF\u1DE7-\u1DFB\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FC5\u1FD4\u1FD5\u1FDC\u1FF0\u1FF1\u1FF5\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u206F\u2072\u2073\u208F\u209D-\u209F\u20BB-\u20CF\u20F1-\u20FF\u218A-\u218F\u23F4-\u23FF\u2427-\u243F\u244B-\u245F\u2700\u2B4D-\u2B4F\u2B5A-\u2BFF\u2C2F\u2C5F\u2CF4-\u2CF8\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D71-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E3C-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u2FFC-\u2FFF\u3040\u3097\u3098\u3100-\u3104\u312E-\u3130\u318F\u31BB-\u31BF\u31E4-\u31EF\u321F\u32FF\u4DB6-\u4DBF\u9FCD-\u9FFF\uA48D-\uA48F\uA4C7-\uA4CF\uA62C-\uA63F\uA698-\uA69E\uA6F8-\uA6FF\uA78F\uA794-\uA79F\uA7AB-\uA7F7\uA82C-\uA82F\uA83A-\uA83F\uA878-\uA87F\uA8C5-\uA8CD\uA8DA-\uA8DF\uA8FC-\uA8FF\uA954-\uA95E\uA97D-\uA97F\uA9CE\uA9DA-\uA9DD\uA9E0-\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A\uAA5B\uAA7C-\uAA7F\uAAC3-\uAADA\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F-\uABBF\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBC2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFE\uFDFF\uFE1A-\uFE1F\uFE27-\uFE2F\uFE53\uFE67\uFE6C-\uFE6F\uFE75\uFEFD-\uFF00\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]/g,"."),e||(A=A.replace(/[\x09-\x10\u2028\u2029]/g,".")),A)}},{key:"escapeWhitespace",value:function(A){return A.replace(/[\x09-\x10]/g,(function(A){return String.fromCharCode(57344+A.charCodeAt(0))}))}},{key:"parseEscapedChars",value:function(A){return A.replace(/\\([abfnrtv'"]|[0-3][0-7]{2}|[0-7]{1,2}|x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]{1,6}\}|\\)/g,(function(A,e){switch(e[0]){case"\\":return"\\";case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":return String.fromCharCode(parseInt(e,8));case"a":return String.fromCharCode(7);case"b":return"\b";case"t":return"\t";case"n":return"\n";case"v":return"\v";case"f":return"\f";case"r":return"\r";case'"':return'"';case"'":return"'";case"x":return String.fromCharCode(parseInt(e.substr(1),16));case"u":return"{"===e[1]?String.fromCodePoint(parseInt(e.slice(2,-1),16)):String.fromCharCode(parseInt(e.substr(1),16))}}))}},{key:"escapeRegex",value:function(A){return A.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}},{key:"expandAlphRange",value:function(e){for(var t=[],I=0;I=0;r--)t=256*t+A[r];return t}},{key:"intToByteArray",value:function(A,e,t){var I=new Array(e);if("little"===t)for(var r=0;r>>=8;else for(var i=e-1;i>=0;i--)I[i]=255&A,A>>>=8;return I}},{key:"strToArrayBuffer",value:function(e){if(f().debug(`Converting string[${null==e?void 0:e.length}] to array buffer`),!e)return new ArrayBuffer;for(var t,I=new Uint8Array(e.length),r=e.length;r--;)if(t=e.charCodeAt(r),I[r]=t,t>255)return A.strToUtf8ArrayBuffer(e);return I.buffer}},{key:"strToUtf8ArrayBuffer",value:function(A){if(f().debug(`Converting string[${null==A?void 0:A.length}] to UTF8 array buffer`),!A)return new ArrayBuffer;var e=new TextEncoder("utf-8").encode(A);return A.length!==e.length&&(R()&&self&&"function"==typeof self.setOption?self.setOption("attemptHighlight",!1):v()&&(window.app.options.attemptHighlight=!1)),e.buffer}},{key:"strToByteArray",value:function(e){if(f().debug(`Converting string[${null==e?void 0:e.length}] to byte array`),!e)return[];for(var t,I=new Array(e.length),r=e.length;r--;)if(t=e.charCodeAt(r),I[r]=t,t>255)return A.strToUtf8ByteArray(e);return I}},{key:"strToUtf8ByteArray",value:function(e){if(f().debug(`Converting string[${null==e?void 0:e.length}] to UTF8 byte array`),!e)return[];var t=y().encode(e);return e.length!==t.length&&(R()?self.setOption("attemptHighlight",!1):v()&&(window.app.options.attemptHighlight=!1)),A.strToByteArray(t)}},{key:"strToCharcode",value:function(e){if(f().debug(`Converting string[${null==e?void 0:e.length}] to charcode`),!e)return[];for(var t=[],I=0;I=55296&&r<56320){var i=e[I+1].charCodeAt(0);i>=56320&&i<57344&&(r=A.ord(e[I]+e[++I]))}t.push(r)}return t}},{key:"byteArrayToUtf8",value:function(e){var t;if(f().debug(`Converting byte array[${null===(t=e)||void 0===t?void 0:t.length}] to UTF8`),!e||!e.length)return"";e instanceof Uint8Array||(e=new Uint8Array(e));try{var I=new TextDecoder("utf-8",{fatal:!0}).decode(e);return I.length!==e.length&&(R()?self.setOption("attemptHighlight",!1):v()&&(window.app.options.attemptHighlight=!1)),I}catch(t){return A.byteArrayToChars(e)}}},{key:"byteArrayToChars",value:function(A){if(f().debug(`Converting byte array[${null==A?void 0:A.length}] to chars`),!A||!A.length)return"";for(var e="",t=0;t1&&void 0!==arguments[1])||arguments[1];if(f().debug(`Converting array buffer[${null==e?void 0:e.byteLength}] to str`),!e||!e.byteLength)return"";var I=new Uint8Array(e);return t?A.byteArrayToUtf8(I):A.byteArrayToChars(I)}},{key:"calculateShannonEntropy",value:function(A){A instanceof ArrayBuffer&&(A=new Uint8Array(A));var e,t=[],I=new Array(256).fill(0);for(e=0;e0&&t.push(I[e]/A.length);var r,i=0;for(e=0;e1&&void 0!==arguments[1]?arguments[1]:[","],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["\n","\r"],i=!1,g=!1,n="",o=[],a=[];A.length&&"\ufeff"===A[0]&&(A=A.substr(1));for(var C=0;C=0?(o.push(n),n=""):!g&&r.indexOf(e)>=0?(o.push(n),n="",a.push(o),o=[],r.indexOf(t)>=0&&t!==e&&C++):n+=e:g=!0;return o.length&&(o.push(n),a.push(o)),a}},{key:"stripHtmlTags",value:function(A){function e(A,t){var I=t.replace(A,"");return I.length===t.length?I:e(A,I)}return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(A=e(/]*>(\s|\S)*?<\/script[^>]*>/gi,A),A=e(/]*>(\s|\S)*?<\/style[^>]*>/gi,A)),e(/<[^>]+>/g,A)}},{key:"escapeHtml",value:function(A){var e={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","\0":""};return A?A.replace(/[&<>"'`\u0000]/g,(function(A){return e[A]})):A}},{key:"unescapeHtml",value:function(A){var e={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/","`":"`","":"\0"};return A.replace(/(&#?x?[a-z0-9]{2,4};|\ue000)/gi,(function(A){return e[A]||A}))}},{key:"encodeURIFragment",value:function(A){var e={"%2D":"-","%2E":".","%5F":"_","%7E":"~","%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2C":",","%3B":";","%3A":":","%40":"@","%2F":"/","%3F":"?"};return(A=encodeURIComponent(A)).replace(/%[0-9A-F]{2}/g,(function(A){return e[A]||A}))}},{key:"generatePrettyRecipe",value:function(A){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t="",I="",r="",i="",g="";return A.forEach((function(A){I=A.op.replace(/ /g,"_"),r=JSON.stringify(A.args).slice(1,-1).replace(/'/g,"\\'").replace(/"((?:[^"\\]|\\.)*)"/g,"'$1'").replace(/\\"/g,'"'),i=A.disabled?"/disabled":"",g=A.breakpoint?"/breakpoint":"",t+=`${I}(${r}${i}${g})`,e&&(t+="\n")})),t}},{key:"parseRecipeConfig",value:function(A){if(0===(A=A.trim()).length)return[];if("["===A[0])return JSON.parse(A);var e,t;A=A.replace(/\n/g,"");for(var I=/([^(]+)\(((?:'[^'\\]*(?:\\.[^'\\]*)*'|[^)/'])*)(\/[^)]+)?\)/g,r=[];e=I.exec(A);){t="["+(t=e[2].replace(/"/g,'\\"').replace(/(^|,|{|:)'/g,'$1"').replace(/([^\\]|(?:\\\\)+)'(,|:|}|$)/g,'$1"$2').replace(/\\'/g,"'"))+"]";var i={op:e[1].replace(/_/g," "),args:JSON.parse(t)};e[3]&&e[3].indexOf("disabled")>0&&(i.disabled=!0),e[3]&&e[3].indexOf("breakpoint")>0&&(i.breakpoint=!0),r.push(i)}return r}},{key:"displayFilesAsHTML",value:(e=E(Q().mark((function e(t){var I,r,i,g,n;return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:I=function(e){return`
\n
\n
\n ${A.escapeHtml(e.name)}\n
\n
\n
`},r=function(e,t){if(t.startsWith("image")){var I="data:";return I+=t+";",""}return`
${A.escapeHtml(A.arrayBufferToStr(e.buffer))}
`},i=function(){var e=E(Q().mark((function e(t,I){var i,g,n,o;return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A.readFile(t);case 2:return i=e.sent,g=new Blob([i],{type:t.type||"octet/stream"}),n=URL.createObjectURL(g),o=`
\n
\n
\n \n \n ${t.size.toLocaleString()} bytes\n \n save\n \n \n open_in_browser\n \n \n
\n
\n
\n
\n ${r(i,t.type)}\n
\n
\n
`,e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})));return function(A,t){return e.apply(this,arguments)}}(),g=`
\n ${t.length} file(s) found\n
`,n=0;case 5:if(!(n=A.size)e(r);else{var t=A.slice(i,i+g);I.readAsArrayBuffer(t)}};I.onload=function(A){r.set(new Uint8Array(I.result),i),i+=g,n()},I.onerror=function(A){t(I.error.message)},n()}))}},{key:"readFileSync",value:function(A){if(!G())throw new TypeError("Browser environment cannot support readFileSync");return Uint8Array.from(A.data).buffer}},{key:"mod",value:function(A,e){return(A%e+e)%e}},{key:"gcd",value:function(e,t){return t?A.gcd(t,e%t):e}},{key:"modInv",value:function(A,e){A%=e;for(var t=1;t>=0,e=String(void 0!==e?e:" "),this.length>A?String(this):((A-=this.length)>e.length&&(e+=e.repeat(A/e.length)),e.slice(0,A)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(A,e){return A>>=0,e=String(void 0!==e?e:" "),this.length>A?String(this):((A-=this.length)>e.length&&(e+=e.repeat(A/e.length)),String(this)+e.slice(0,A))});const M=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){var A;I(this,i);for(var e=arguments.length,t=new Array(e),g=0;g0||A===e?e:e-1}function P(A){for(var e,t,I=1,r=A.length,i=A[0]+"";Ia^t?1:-1;for(n=(o=r.length)<(a=i.length)?o:a,g=0;gi[g]^t?1:-1;return o==a?0:o>a^t?1:-1}function Z(A,e,t,I){if(At||A!==L(A))throw Error(H+(I||"Argument")+("number"==typeof A?At?" out of range: ":" not an integer: ":" not a primitive number: ")+String(A))}function j(A){var e=A.c.length-1;return W(A.e/K)==e&&A.c[e]%2!=0}function X(A,e){return(A.length>1?A.charAt(0)+"."+A.slice(1):A)+(e<0?"e":"e+")+e}function z(A,e,t){var I,r;if(e<0){for(r=t+".";++e;r+=t);A=r+A}else if(++e>(I=A.length)){for(r=t,e-=I;--e;r+=t);A+=r}else el?s.c=s.e=null:A.e=10;o/=10,n++);return void(n>l?s.c=s.e=null:(s.e=n,s.c=[A]))}B=String(A)}else{if(!Y.test(B=String(A)))return r(s,B,a);s.s=45==B.charCodeAt(0)?(B=B.slice(1),-1):1}(n=B.indexOf("."))>-1&&(B=B.replace(".","")),(o=B.search(/e/i))>0?(n<0&&(n=o),n+=+B.slice(o+1),B=B.substring(0,o)):n<0&&(n=B.length)}else{if(Z(e,2,F.length,"Base"),10==e&&D)return G(s=new S(A),h+s.e+1,Q);if(B=String(A),a="number"==typeof A){if(0*A!=0)return r(s,B,a,e);if(s.s=1/A<0?(B=B.slice(1),-1):1,S.DEBUG&&B.replace(/^0\.0*|\./,"").length>15)throw Error(J+A)}else s.s=45===B.charCodeAt(0)?(B=B.slice(1),-1):1;for(t=F.slice(0,e),n=o=0,C=B.length;on){n=C;continue}}else if(!g&&(B==B.toUpperCase()&&(B=B.toLowerCase())||B==B.toLowerCase()&&(B=B.toUpperCase()))){g=!0,o=-1,n=0;continue}return r(s,String(A),a,e)}a=!1,(n=(B=I(B,e,10,s.s)).indexOf("."))>-1?B=B.replace(".",""):n=B.length}for(o=0;48===B.charCodeAt(o);o++);for(C=B.length;48===B.charCodeAt(--C););if(B=B.slice(o,++C)){if(C-=o,a&&S.DEBUG&&C>15&&(A>T||A!==L(A)))throw Error(J+s.s*A);if((n=n-o-1)>l)s.c=s.e=null;else if(n=u)?X(o,g):z(o,g,"0");else if(i=(A=G(new S(A),e,t)).e,n=(o=P(A.c)).length,1==I||2==I&&(e<=i||i<=c)){for(;nn){if(--e>0)for(o+=".";e--;o+="0");}else if((e+=i-n)>0)for(i+1==n&&(o+=".");e--;o+="0");return A.s<0&&r?"-"+o:o}function U(A,e){for(var t,I=1,r=new S(A[0]);I=10;r/=10,I++);return(t=I+t*K-1)>l?A.c=A.e=null:t=10;n/=10,r++);if((i=e-r)<0)i+=K,g=e,C=(o=B[a=0])/s[r-g-1]%10|0;else if((a=N((i+1)/K))>=B.length){if(!I)break A;for(;B.length<=a;B.push(0));o=C=0,r=1,g=(i%=K)-K+1}else{for(o=n=B[a],r=1;n>=10;n/=10,r++);C=(g=(i%=K)-K+r)<0?0:o/s[r-g-1]%10|0}if(I=I||e<0||null!=B[a+1]||(g<0?o:o%s[r-g-1]),I=t<4?(C||I)&&(0==t||t==(A.s<0?3:2)):C>5||5==C&&(4==t||I||6==t&&(i>0?g>0?o/s[r-g]:0:B[a-1])%10&1||t==(A.s<0?8:7)),e<1||!B[0])return B.length=0,I?(e-=A.e+1,B[0]=s[(K-e%K)%K],A.e=-e||0):B[0]=A.e=0,A;if(0==i?(B.length=a,n=1,a--):(B.length=a+1,n=s[K-i],B[a]=g>0?L(o/s[r-g]%s[g])*n:0),I)for(;;){if(0==a){for(i=1,g=B[0];g>=10;g/=10,i++);for(g=B[0]+=n,n=1;g>=10;g/=10,n++);i!=n&&(A.e++,B[0]==q&&(B[0]=1));break}if(B[a]+=n,B[a]!=q)break;B[a--]=0,n=1}for(i=B.length;0===B[--i];B.pop());}A.e>l?A.c=A.e=null:A.e=u?X(e,t):z(e,t,"0"),A.s<0?"-"+e:e)}return S.clone=A,S.ROUND_UP=0,S.ROUND_DOWN=1,S.ROUND_CEIL=2,S.ROUND_FLOOR=3,S.ROUND_HALF_UP=4,S.ROUND_HALF_DOWN=5,S.ROUND_HALF_EVEN=6,S.ROUND_HALF_CEIL=7,S.ROUND_HALF_FLOOR=8,S.EUCLID=9,S.config=S.set=function(A){var e,t;if(null!=A){if("object"!=typeof A)throw Error(H+"Object expected: "+A);if(A.hasOwnProperty(e="DECIMAL_PLACES")&&(Z(t=A[e],0,V,e),h=t),A.hasOwnProperty(e="ROUNDING_MODE")&&(Z(t=A[e],0,8,e),Q=t),A.hasOwnProperty(e="EXPONENTIAL_AT")&&((t=A[e])&&t.pop?(Z(t[0],-V,0,e),Z(t[1],0,V,e),c=t[0],u=t[1]):(Z(t,-V,V,e),c=-(u=t<0?-t:t))),A.hasOwnProperty(e="RANGE"))if((t=A[e])&&t.pop)Z(t[0],-V,-1,e),Z(t[1],1,V,e),f=t[0],l=t[1];else{if(Z(t,-V,V,e),!t)throw Error(H+e+" cannot be zero: "+t);f=-(l=t<0?-t:t)}if(A.hasOwnProperty(e="CRYPTO")){if((t=A[e])!==!!t)throw Error(H+e+" not true or false: "+t);if(t){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw y=!t,Error(H+"crypto unavailable");y=t}else y=t}if(A.hasOwnProperty(e="MODULO_MODE")&&(Z(t=A[e],0,9,e),p=t),A.hasOwnProperty(e="POW_PRECISION")&&(Z(t=A[e],0,V,e),w=t),A.hasOwnProperty(e="FORMAT")){if("object"!=typeof(t=A[e]))throw Error(H+e+" not an object: "+t);d=t}if(A.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(t=A[e])||/^.?$|[+\-.\s]|(.).*\1/.test(t))throw Error(H+e+" invalid: "+t);D="0123456789"==t.slice(0,10),F=t}}return{DECIMAL_PLACES:h,ROUNDING_MODE:Q,EXPONENTIAL_AT:[c,u],RANGE:[f,l],CRYPTO:y,MODULO_MODE:p,POW_PRECISION:w,FORMAT:d,ALPHABET:F}},S.isBigNumber=function(A){if(!A||!0!==A._isBigNumber)return!1;if(!S.DEBUG)return!0;var e,t,I=A.c,r=A.e,i=A.s;A:if("[object Array]"=={}.toString.call(I)){if((1===i||-1===i)&&r>=-V&&r<=V&&r===L(r)){if(0===I[0]){if(0===r&&1===I.length)return!0;break A}if((e=(r+1)%K)<1&&(e+=K),String(I[0]).length==e){for(e=0;e=q||t!==L(t))break A;if(0!==t)return!0}}}else if(null===I&&null===r&&(null===i||1===i||-1===i))return!0;throw Error(H+"Invalid BigNumber: "+A)},S.maximum=S.max=function(){return U(arguments,s.lt)},S.minimum=S.min=function(){return U(arguments,s.gt)},S.random=(i=9007199254740992,g=Math.random()*i&2097151?function(){return L(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(A){var e,t,I,r,i,n=0,o=[],a=new S(E);if(null==A?A=h:Z(A,0,V),r=N(A/K),y)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(r*=2));n>>11))>=9e15?(t=crypto.getRandomValues(new Uint32Array(2)),e[n]=t[0],e[n+1]=t[1]):(o.push(i%1e14),n+=2);n=r/2}else{if(!crypto.randomBytes)throw y=!1,Error(H+"crypto unavailable");for(e=crypto.randomBytes(r*=7);n=9e15?crypto.randomBytes(7).copy(e,n):(o.push(i%1e14),n+=7);n=r/7}if(!y)for(;n=10;i/=10,n++);nt-1&&(null==g[r+1]&&(g[r+1]=0),g[r+1]+=g[r]/t|0,g[r]%=t)}return g.reverse()}return function(I,r,i,g,n){var o,a,C,B,s,E,c,u,f=I.indexOf("."),l=h,y=Q;for(f>=0&&(B=w,w=0,I=I.replace(".",""),E=(u=new S(r)).pow(I.length-f),w=B,u.c=e(z(P(E.c),E.e,"0"),10,i,A),u.e=u.c.length),C=B=(c=e(I,r,i,n?(o=F,A):(o=A,F))).length;0==c[--B];c.pop());if(!c[0])return o.charAt(0);if(f<0?--C:(E.c=c,E.e=C,E.s=g,c=(E=t(E,u,l,y,i)).c,s=E.r,C=E.e),f=c[a=C+l+1],B=i/2,s=s||a<0||null!=c[a+1],s=y<4?(null!=f||s)&&(0==y||y==(E.s<0?3:2)):f>B||f==B&&(4==y||s||6==y&&1&c[a-1]||y==(E.s<0?8:7)),a<1||!c[0])I=s?z(o.charAt(1),-l,o.charAt(0)):o.charAt(0);else{if(c.length=a,s)for(--i;++c[--a]>i;)c[a]=0,a||(++C,c=[1].concat(c));for(B=c.length;!c[--B];);for(f=0,I="";f<=B;I+=o.charAt(c[f++]));I=z(I,C,o.charAt(0))}return I}}(),t=function(){function A(A,e,t){var I,r,i,g,n=0,o=A.length,a=e%_,C=e/_|0;for(A=A.slice();o--;)n=((r=a*(i=A[o]%_)+(I=C*i+(g=A[o]/_|0)*a)%_*_+n)/t|0)+(I/_|0)+C*g,A[o]=r%t;return n&&(A=[n].concat(A)),A}function e(A,e,t,I){var r,i;if(t!=I)i=t>I?1:-1;else for(r=i=0;re[r]?1:-1;break}return i}function t(A,e,t,I){for(var r=0;t--;)A[t]-=r,r=A[t]1;A.splice(0,1));}return function(I,r,i,g,n){var o,a,C,B,s,E,h,Q,c,u,f,l,y,p,w,d,F,D=I.s==r.s?1:-1,m=I.c,U=r.c;if(!(m&&m[0]&&U&&U[0]))return new S(I.s&&r.s&&(m?!U||m[0]!=U[0]:U)?m&&0==m[0]||!U?0*D:D/0:NaN);for(c=(Q=new S(D)).c=[],D=i+(a=I.e-r.e)+1,n||(n=q,a=W(I.e/K)-W(r.e/K),D=D/K|0),C=0;U[C]==(m[C]||0);C++);if(U[C]>(m[C]||0)&&a--,D<0)c.push(1),B=!0;else{for(p=m.length,d=U.length,C=0,D+=2,(s=L(n/(U[0]+1)))>1&&(U=A(U,s,n),m=A(m,s,n),d=U.length,p=m.length),y=d,f=(u=m.slice(0,d)).length;f=n/2&&w++;do{if(s=0,(o=e(U,u,d,f))<0){if(l=u[0],d!=f&&(l=l*n+(u[1]||0)),(s=L(l/w))>1)for(s>=n&&(s=n-1),h=(E=A(U,s,n)).length,f=u.length;1==e(E,u,h,f);)s--,t(E,d=10;D/=10,C++);G(Q,i+(Q.e=C+a*K-1)+1,g,B)}else Q.e=a,Q.r=+B;return Q}}(),n=/^(-?)0([xbo])(?=\w[\w.]*$)/i,o=/^([^.]+)\.$/,a=/^\.([^.]+)$/,C=/^-?(Infinity|NaN)$/,B=/^\s*\+(?=[\w.])|^\s+|\s+$/g,r=function(A,e,t,I){var r,i=t?e:e.replace(B,"");if(C.test(i))A.s=isNaN(i)?null:i<0?-1:1;else{if(!t&&(i=i.replace(n,(function(A,e,t){return r="x"==(t=t.toLowerCase())?16:"b"==t?2:8,I&&I!=r?A:e})),I&&(r=I,i=i.replace(o,"$1").replace(a,"0.$1")),e!=i))return new S(i,r);if(S.DEBUG)throw Error(H+"Not a"+(I?" base "+I:"")+" number: "+e);A.s=null}A.c=A.e=null},s.absoluteValue=s.abs=function(){var A=new S(this);return A.s<0&&(A.s=1),A},s.comparedTo=function(A,e){return O(this,new S(A,e))},s.decimalPlaces=s.dp=function(A,e){var t,I,r,i=this;if(null!=A)return Z(A,0,V),null==e?e=Q:Z(e,0,8),G(new S(i),A+i.e+1,e);if(!(t=i.c))return null;if(I=((r=t.length-1)-W(this.e/K))*K,r=t[r])for(;r%10==0;r/=10,I--);return I<0&&(I=0),I},s.dividedBy=s.div=function(A,e){return t(this,new S(A,e),h,Q)},s.dividedToIntegerBy=s.idiv=function(A,e){return t(this,new S(A,e),0,1)},s.exponentiatedBy=s.pow=function(A,e){var t,I,r,i,g,n,o,a,C=this;if((A=new S(A)).c&&!A.isInteger())throw Error(H+"Exponent not an integer: "+v(A));if(null!=e&&(e=new S(e)),g=A.e>14,!C.c||!C.c[0]||1==C.c[0]&&!C.e&&1==C.c.length||!A.c||!A.c[0])return a=new S(Math.pow(+v(C),g?A.s*(2-j(A)):+v(A))),e?a.mod(e):a;if(n=A.s<0,e){if(e.c?!e.c[0]:!e.s)return new S(NaN);(I=!n&&C.isInteger()&&e.isInteger())&&(C=C.mod(e))}else{if(A.e>9&&(C.e>0||C.e<-1||(0==C.e?C.c[0]>1||g&&C.c[1]>=24e7:C.c[0]<8e13||g&&C.c[0]<=9999975e7)))return i=C.s<0&&j(A)?-0:0,C.e>-1&&(i=1/i),new S(n?1/i:i);w&&(i=N(w/K+2))}for(g?(t=new S(.5),n&&(A.s=1),o=j(A)):o=(r=Math.abs(+v(A)))%2,a=new S(E);;){if(o){if(!(a=a.times(C)).c)break;i?a.c.length>i&&(a.c.length=i):I&&(a=a.mod(e))}if(r){if(0===(r=L(r/2)))break;o=r%2}else if(G(A=A.times(t),A.e+1,1),A.e>14)o=j(A);else{if(0==(r=+v(A)))break;o=r%2}C=C.times(C),i?C.c&&C.c.length>i&&(C.c.length=i):I&&(C=C.mod(e))}return I?a:(n&&(a=E.div(a)),e?a.mod(e):i?G(a,w,Q,void 0):a)},s.integerValue=function(A){var e=new S(this);return null==A?A=Q:Z(A,0,8),G(e,e.e+1,A)},s.isEqualTo=s.eq=function(A,e){return 0===O(this,new S(A,e))},s.isFinite=function(){return!!this.c},s.isGreaterThan=s.gt=function(A,e){return O(this,new S(A,e))>0},s.isGreaterThanOrEqualTo=s.gte=function(A,e){return 1===(e=O(this,new S(A,e)))||0===e},s.isInteger=function(){return!!this.c&&W(this.e/K)>this.c.length-2},s.isLessThan=s.lt=function(A,e){return O(this,new S(A,e))<0},s.isLessThanOrEqualTo=s.lte=function(A,e){return-1===(e=O(this,new S(A,e)))||0===e},s.isNaN=function(){return!this.s},s.isNegative=function(){return this.s<0},s.isPositive=function(){return this.s>0},s.isZero=function(){return!!this.c&&0==this.c[0]},s.minus=function(A,e){var t,I,r,i,g=this,n=g.s;if(e=(A=new S(A,e)).s,!n||!e)return new S(NaN);if(n!=e)return A.s=-e,g.plus(A);var o=g.e/K,a=A.e/K,C=g.c,B=A.c;if(!o||!a){if(!C||!B)return C?(A.s=-e,A):new S(B?g:NaN);if(!C[0]||!B[0])return B[0]?(A.s=-e,A):new S(C[0]?g:3==Q?-0:0)}if(o=W(o),a=W(a),C=C.slice(),n=o-a){for((i=n<0)?(n=-n,r=C):(a=o,r=B),r.reverse(),e=n;e--;r.push(0));r.reverse()}else for(I=(i=(n=C.length)<(e=B.length))?n:e,n=e=0;e0)for(;e--;C[t++]=0);for(e=q-1;I>n;){if(C[--I]=0;){for(t=0,s=l[r]%c,E=l[r]/c|0,i=r+(g=o);i>r;)t=((a=s*(a=f[--g]%c)+(n=E*a+(C=f[g]/c|0)*s)%c*c+h[i]+t)/Q|0)+(n/c|0)+E*C,h[i--]=a%Q;h[i]=t}return t?++I:h.splice(0,1),k(A,h,I)},s.negated=function(){var A=new S(this);return A.s=-A.s||null,A},s.plus=function(A,e){var t,I=this,r=I.s;if(e=(A=new S(A,e)).s,!r||!e)return new S(NaN);if(r!=e)return A.s=-e,I.minus(A);var i=I.e/K,g=A.e/K,n=I.c,o=A.c;if(!i||!g){if(!n||!o)return new S(r/0);if(!n[0]||!o[0])return o[0]?A:new S(n[0]?I:0*r)}if(i=W(i),g=W(g),n=n.slice(),r=i-g){for(r>0?(g=i,t=o):(r=-r,t=n),t.reverse();r--;t.push(0));t.reverse()}for((r=n.length)-(e=o.length)<0&&(t=o,o=n,n=t,e=r),r=0;e;)r=(n[--e]=n[e]+o[e]+r)/q|0,n[e]=q===n[e]?0:n[e]%q;return r&&(n=[r].concat(n),++g),k(A,n,g)},s.precision=s.sd=function(A,e){var t,I,r,i=this;if(null!=A&&A!==!!A)return Z(A,1,V),null==e?e=Q:Z(e,0,8),G(new S(i),A,e);if(!(t=i.c))return null;if(I=(r=t.length-1)*K+1,r=t[r]){for(;r%10==0;r/=10,I--);for(r=t[0];r>=10;r/=10,I++);}return A&&i.e+1>I&&(I=i.e+1),I},s.shiftedBy=function(A){return Z(A,-9007199254740991,T),this.times("1e"+A)},s.squareRoot=s.sqrt=function(){var A,e,I,r,i,g=this,n=g.c,o=g.s,a=g.e,C=h+4,B=new S("0.5");if(1!==o||!n||!n[0])return new S(!o||o<0&&(!n||n[0])?NaN:n?g:1/0);if(0==(o=Math.sqrt(+v(g)))||o==1/0?(((e=P(n)).length+a)%2==0&&(e+="0"),o=Math.sqrt(+e),a=W((a+1)/2)-(a<0||a%2),I=new S(e=o==1/0?"5e"+a:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+a)):I=new S(o+""),I.c[0])for((o=(a=I.e)+C)<3&&(o=0);;)if(i=I,I=B.times(i.plus(t(g,i,C,1))),P(i.c).slice(0,o)===(e=P(I.c)).slice(0,o)){if(I.e0&&h>0){for(i=h%n||n,C=E.substr(0,i);i0&&(C+=a+E.slice(i)),s&&(C="-"+C)}I=B?C+(t.decimalSeparator||"")+((o=+t.fractionGroupSize)?B.replace(new RegExp("\\d{"+o+"}\\B","g"),"$&"+(t.fractionGroupSeparator||"")):B):C}return(t.prefix||"")+I+(t.suffix||"")},s.toFraction=function(A){var e,I,r,i,g,n,o,a,C,B,s,h,c=this,u=c.c;if(null!=A&&(!(o=new S(A)).isInteger()&&(o.c||1!==o.s)||o.lt(E)))throw Error(H+"Argument "+(o.isInteger()?"out of range: ":"not an integer: ")+v(o));if(!u)return new S(c);for(e=new S(E),C=I=new S(E),r=a=new S(E),h=P(u),g=e.e=h.length-c.e-1,e.c[0]=x[(n=g%K)<0?K+n:n],A=!A||o.comparedTo(e)>0?g>0?e:C:o,n=l,l=1/0,o=new S(h),a.c[0]=0;B=t(o,e,0,1),1!=(i=I.plus(B.times(r))).comparedTo(A);)I=r,r=i,C=a.plus(B.times(i=C)),a=i,e=o.minus(B.times(i=e)),o=i;return i=t(A.minus(I),r,0,1),a=a.plus(i.times(C)),I=I.plus(i.times(r)),a.s=C.s=c.s,s=t(C,r,g*=2,Q).minus(c).abs().comparedTo(t(a,I,g,Q).minus(c).abs())<1?[C,r]:[a,I],l=n,s},s.toNumber=function(){return+v(this)},s.toPrecision=function(A,e){return null!=A&&Z(A,1,V),m(this,A,e,2)},s.toString=function(A){var e,t=this,r=t.s,i=t.e;return null===i?r?(e="Infinity",r<0&&(e="-"+e)):e="NaN":(null==A?e=i<=c||i>=u?X(P(t.c),i):z(P(t.c),i,"0"):10===A&&D?e=z(P((t=G(new S(t),h+i+1,Q)).c),t.e,"0"):(Z(A,2,F.length,"Base"),e=I(z(P(t.c),i,"0"),10,A,r,!0)),r<0&&t.c[0]&&(e="-"+e)),e},s.valueOf=s.toJSON=function(){return v(this)},s._isBigNumber=!0,s[Symbol.toStringTag]="BigNumber",s[Symbol.for("nodejs.util.inspect.custom")]=s.valueOf,null!=e&&S.set(e),S}();const AA=$;var eA=function(){function A(e){I(this,A),this.bytes=e,this.length=this.bytes.length,this.position=0,this.bitPos=0}return g(A,[{key:"getBytes",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!(this.position>this.length)){var e=null!==A?this.position+A:this.length,t=this.bytes.slice(this.position,e);return this.position=e,this.bitPos=0,t}}},{key:"readString",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(!(this.position>this.length)){-1===A&&(A=this.length-this.position);for(var e="",t=this.position;t1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var t=0;if("be"===e)for(var I=this.position;I=this.position;r--)t<<=8,t|=this.bytes[r];return this.position+=A,this.bitPos=0,t}}},{key:"readBits",value:function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var t,I=0,r=0;for(I=this.bytes[this.position++]&(t=this.bitPos,"be"===e?(1<<8-t)-1:256-(1<>>=this.bitPos),r=8-this.bitPos,this.bitPos=0;rA){var i=r-A;"be"===e?I>>>=i:I&=(1<this.length))if(this.bitPos=0,"number"!=typeof A){var e=A.length,t=A[e-1];this.position=e;for(var I,r=function(A,e){var t=new Array;return A.forEach((function(A,I){t[A]=e-I})),t}(A,e);this.position=0;i--)if(this.bytes[this.position-e+i]!==A[i]){I=!1,this.position+=r[A[i]];break}if(I){this.position-=e;break}}}else for(;++this.positionthis.length)throw new Error("Cannot move to position "+e+" in stream. Out of bounds.");this.position=e,this.bitPos=0}},{key:"moveBackwardsBy",value:function(A){var e=this.position-A;if(e<0||e>this.length)throw new Error("Cannot move to position "+e+" in stream. Out of bounds.");this.position=e,this.bitPos=0}},{key:"moveBackwardsByBits",value:function(A){if(A<=this.bitPos)this.bitPos-=A;else for(this.bitPos>0&&(A-=this.bitPos,this.bitPos=0);A>0;)this.moveBackwardsBy(1),this.bitPos=8,this.moveBackwardsByBits(A),A-=8}},{key:"moveTo",value:function(A){if(A<0||A>this.length)throw new Error("Cannot move to position "+A+" in stream. Out of bounds.");this.position=A,this.bitPos=0}},{key:"hasMore",value:function(){return this.position0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.position;return this.bitPos>0&&e++,this.bytes.slice(A,e)}}]),A}();function tA(A,e){var t="undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(!t){if(Array.isArray(A)||(t=function(A,e){if(A){if("string"==typeof A)return IA(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);return"Object"===t&&A.constructor&&(t=A.constructor.name),"Map"===t||"Set"===t?Array.from(A):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?IA(A,e):void 0}}(A))||e&&A&&"number"==typeof A.length){t&&(A=t);var I=0,r=function(){};return{s:r,n:function(){return I>=A.length?{done:!0}:{done:!1,value:A[I++]}},e:function(A){throw A},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,g=!0,n=!1;return{s:function(){t=t.call(A)},n:function(){var A=t.next();return g=A.done,A},e:function(A){n=!0,i=A},f:function(){try{g||null==t.return||t.return()}finally{if(n)throw i}}}}function IA(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,I=new Array(e);t>4],o=r[(15&g)>>2],a=(2&g)>>1;if("free"===n||"bad"===n||"reserved"===o){t.moveBackwardsBy(1);break}var C=Math.floor(144*n/o+a);if(t.position+C>t.length){t.moveTo(t.length);break}t.moveForwardsBy(C-3)}return t.carve()}},{name:"MPEG-4 Part 14 audio",extension:"m4a",mime:"audio/m4a",description:"",signature:[{4:102,5:116,6:121,7:112,8:77,9:52,10:65},{0:77,1:52,2:65,3:32}],extractor:null},{name:"Free Lossless Audio Codec",extension:"flac",mime:"audio/x-flac",description:"",signature:{0:102,1:76,2:97,3:67},extractor:null},{name:"Adaptive Multi-Rate audio codec",extension:"amr",mime:"audio/amr",description:"",signature:{0:35,1:33,2:65,3:77,4:82,5:10},extractor:null},{name:"Audacity",extension:"au",mime:"audio/x-au",description:"",signature:{0:100,1:110,2:115,3:46,24:65,25:117,26:100,27:97,28:99,29:105,30:116,31:121,32:66,33:108,34:111,35:99,36:107,37:70,38:105,39:108,40:101},extractor:null},{name:"Audacity Block",extension:"auf",mime:"application/octet-stream",description:"",signature:{0:65,1:117,2:100,3:97,4:99,5:105,6:116,7:121,8:66,9:108,10:111,11:99,12:107,13:70,14:105,15:108,16:101},extractor:null},{name:"Audio Interchange File",extension:"aif",mime:"audio/x-aiff",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:70},extractor:null},{name:"Audio Interchange File (compressed)",extension:"aifc",mime:"audio/x-aifc",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:67},extractor:null}],Documents:[{name:"Portable Document Format",extension:"pdf",mime:"application/pdf",description:"",signature:{0:37,1:80,2:68,3:70},extractor:function(A,e){var t=new eA(A.slice(e));return t.continueUntil([37,37,69,79,70]),t.moveForwardsBy(5),t.consumeIf(13),t.consumeIf(10),t.carve()}},{name:"Portable Document Format (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:65,1:74,2:86,3:66,4:69,5:82,6:105},extractor:null},{name:"Adobe PostScript",extension:"ps,eps,ai,pfa",mime:"application/postscript",description:"",signature:{0:37,1:33,2:80,3:83,4:45,5:65,6:100,7:111,8:98,9:101},extractor:null},{name:"PostScript",extension:"ps",mime:"application/postscript",description:"",signature:{0:37,1:33},extractor:null},{name:"Encapsulated PostScript",extension:"eps,ai",mime:"application/eps",description:"",signature:{0:197,1:208,2:211,3:198},extractor:null},{name:"Rich Text Format",extension:"rtf",mime:"application/rtf",description:"",signature:{0:123,1:92,2:114,3:116},extractor:function(A,e){var t=new eA(A.slice(e)),I=0;if(123!==t.readInt(1))throw new Error("Not a valid RTF file");for(I++;I>0&&t.hasMore();)switch(t.readInt(1)){case 123:I++;break;case 125:I--;break;case 92:t.consumeIf(92),t.position++}return t.carve()}},{name:"Microsoft Office document/OLE2",extension:"ole2,doc,xls,dot,ppt,xla,ppa,pps,pot,msi,sdw,db,vsd,msg",mime:"application/msword,application/vnd.ms-excel,application/vnd.ms-powerpoint",description:"Microsoft Office documents",signature:{0:208,1:207,2:17,3:224,4:161,5:177,6:26,7:225},extractor:null},{name:"Microsoft Office document/OLE2 (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:48,1:77,2:56,3:82,4:52,5:75,6:71,7:120},extractor:null},{name:"Microsoft Office 2007+ document",extension:"docx,xlsx,pptx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.presentation",description:"",signature:{38:95,39:84,40:121,41:112,42:101,43:115,44:93,45:46,46:120,47:109,48:108},extractor:iA},{name:"Microsoft Access database",extension:"mdb,mda,mde,mdt,fdb,psa",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:74,14:101,15:116},extractor:null},{name:"Microsoft Access 2007+ database",extension:"accdb,accde,accda,accdu",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:65,14:67,15:69,16:32},extractor:null},{name:"Microsoft OneNote document",extension:"one",mime:"application/onenote",description:"",signature:{0:228,1:82,2:92,3:123,4:140,5:216,6:167,7:77,8:174,9:177,10:83,11:120,12:208,13:41,14:150,15:211},extractor:null},{name:"Outlook Express database",extension:"dbx",mime:"application/octet-stream",description:"",signature:{0:207,1:173,2:18,3:254,4:[48,197,198,199],11:17},extractor:null},{name:"Personal Storage Table (Outlook)",extension:"pst,ost,fdb,pab",mime:"application/octet-stream",description:"",signature:{0:33,1:66,2:68,3:78},extractor:null},{name:"Microsoft Exchange Database",extension:"edb",mime:"application/octet-stream",description:"",signature:{4:239,5:205,6:171,7:137,8:[32,35],9:6,10:0,11:0,12:[0,1],13:0,14:0,15:0},extractor:null},{name:"WordPerfect document",extension:"wpd,wp,wp5,wp6,wpp,bk!,wcm",mime:"application/wordperfect",description:"",signature:{0:255,1:87,2:80,3:67,7:[0,1,2],8:1,9:10},extractor:null},{name:"EPUB e-book",extension:"epub",mime:"application/epub+zip",description:"",signature:{0:80,1:75,2:3,3:4,30:109,31:105,32:109,33:101,34:116,35:121,36:112,37:101,38:97,39:112,40:112,41:108,42:105,43:99,44:97,45:116,46:105,47:111,48:110,49:47,50:101,51:112,52:117,53:98,54:43,55:122,56:105,57:112},extractor:iA}],Applications:[{name:"Windows Portable Executable",extension:"exe,dll,drv,vxd,sys,ocx,vbx,com,fon,scr",mime:"application/vnd.microsoft.portable-executable",description:"",signature:{0:77,1:90,3:[0,1,2],5:[0,1,2]},extractor:function(A,e){var t=new eA(A.slice(e));t.moveTo(60);var I=t.readInt(4,"le");t.moveTo(I),t.moveForwardsBy(6);var r=t.readInt(2,"le");t.moveForwardsBy(16);var i=523===t.readInt(2,"le")?112:96;t.moveForwardsBy(i-2),t.moveForwardsBy(32);var g=t.readInt(4,"le"),n=t.readInt(4,"le");if(g>0)return t.moveTo(g+n),t.carve();t.moveForwardsBy(88),t.moveForwardsBy(40*(r-1)),t.moveForwardsBy(16);var o=t.readInt(4,"le"),a=t.readInt(4,"le");return t.moveTo(a+o),t.carve()}},{name:"Executable and Linkable Format",extension:"elf,bin,axf,o,prx,so",mime:"application/x-executable",description:"Executable and Linkable Format file. No standard file extension.",signature:{0:127,1:69,2:76,3:70},extractor:function(A,e){var t=new eA(A.slice(e));t.moveForwardsBy(4);var I=1===t.readInt(1),r=1===t.readInt(1)?"le":"be";t.moveForwardsBy(I?26:34);var i=I?t.readInt(4,r):t.readInt(8,r);t.moveForwardsBy(10);var g=t.readInt(2,r),n=t.readInt(2,r);return t.moveTo(i),t.moveForwardsBy(g*n),t.carve()}},{name:"MacOS Mach-O object",extension:"dylib",mime:"application/octet-stream",description:"",signature:[{0:202,1:254,2:186,3:190,4:0,5:0,6:0,7:[1,2,3]},{0:206,1:250,2:237,3:254,4:7,5:0,6:0,7:0,8:[1,2,3]}],extractor:gA},{name:"MacOS Mach-O 64-bit object",extension:"dylib",mime:"application/octet-stream",description:"",signature:{0:207,1:250,2:237,3:254},extractor:gA},{name:"Adobe Flash",extension:"swf",mime:"application/x-shockwave-flash",description:"",signature:{0:[67,70],1:87,2:83},extractor:null},{name:"Java Class",extension:"class",mime:"application/java-vm",description:"",signature:{0:202,1:254,2:186,3:190},extractor:null},{name:"Dalvik Executable",extension:"dex",mime:"application/octet-stream",description:"Dalvik Executable as used by Android",signature:{0:100,1:101,2:120,3:10,4:48,5:51,6:53,7:0},extractor:null},{name:"Google Chrome Extension",extension:"crx",mime:"application/crx",description:"Google Chrome extension or packaged app",signature:{0:67,1:114,2:50,3:52},extractor:null}],Archives:[{name:"PKZIP archive",extension:"zip",mime:"application/zip",description:"",signature:{0:80,1:75,2:[3,5,7],3:[4,6,8]},extractor:iA},{name:"PKZIP archive (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:85,1:69,2:115,3:68,4:66,5:66},extractor:null},{name:"TAR archive",extension:"tar",mime:"application/x-tar",description:"",signature:{257:117,258:115,259:116,260:97,261:114},extractor:function(A,e){for(var t=new eA(A.slice(e));t.hasMore();){if(t.moveForwardsBy(257),t.getBytes(5).join("")!==[117,115,116,97,114].join("")){t.moveBackwardsBy(262);break}t.moveBackwardsBy(138);var I=0;t.getBytes(11).forEach((function(A,e){I+=(A-48).toString()})),I=512*Math.ceil(parseInt(I,8)/512),t.moveForwardsBy(I+377)}return t.consumeWhile(0),t.carve()}},{name:"Roshal Archive",extension:"rar",mime:"application/x-rar-compressed",description:"",signature:{0:82,1:97,2:114,3:33,4:26,5:7,6:[0,1]},extractor:null},{name:"Gzip",extension:"gz",mime:"application/gzip",description:"",signature:{0:31,1:139,2:8},extractor:function(A,e){var t=new eA(A.slice(e));t.moveForwardsBy(3);var I=t.readInt(1);if(t.moveForwardsBy(4),t.readInt(1),t.moveForwardsBy(1),4&I){var r=t.readInt(2,"le");t.moveForwardsby(r)}return 8&I&&(t.continueUntil(0),t.moveForwardsBy(1)),16&I&&(t.continueUntil(0),t.moveForwardsBy(1)),2&I&&t.moveForwardsBy(2),sA(t),t.moveForwardsBy(8),t.carve()}},{name:"Bzip2",extension:"bz2",mime:"application/x-bzip2",description:"",signature:{0:66,1:90,2:104},extractor:function(A,e){for(var t=new eA(A.slice(e)),I=[[119,36,83,133,9],[238,72,167,10,18],[220,145,78,20,36],[185,34,156,40,72],[114,69,56,80,144],[187,146,41,194,132],[93,201,20,225,66],[46,228,138,112,161],[23,114,69,56,80]],r=0;r=2368&&t.moveForwardsBy(4);var n=t.readInt(1,"be");if(t.moveForwardsBy(n),64&g){var o=t.readInt(4,"be");t.moveForwardsBy(o)}for(t.moveForwardsBy(4);t.hasMore();){var a=t.readInt(4,"be");if(0===a)break;var C=t.readInt(4,"be"),B=a===C?r:r+I;t.moveForwardsBy(C+4*B)}return t.carve()}},{name:"Linux deb package",extension:"deb",mime:"application/vnd.debian.binary-package",description:"",signature:{0:33,1:60,2:97,3:114,4:99,5:104,6:62},extractor:function(A,e){var t=new eA(A.slice(e));for(t.moveForwardsBy(8);t.hasMore();){t.moveForwardsBy(48);var I,r="",i=tA(t.getBytes(10));try{for(i.s();!(I=i.n()).done;){var g=I.value;r+=String.fromCharCode(g)}}catch(A){i.e(A)}finally{i.f()}r=parseInt(r.trim(),10),t.moveForwardsBy(2),t.moveForwardsBy(r)}return t.carve()}},{name:"Apple Disk Image",extension:"dmg",mime:"application/x-apple-diskimage",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96},extractor:null}],Miscellaneous:[{name:"UTF-8 text",extension:"txt",mime:"text/plain",description:"UTF-8 encoded Unicode byte order mark, commonly but not exclusively seen in text files.",signature:{0:239,1:187,2:191},extractor:null},{name:"UTF-32 LE text",extension:"utf32le",mime:"charset/utf32le",description:"Little-endian UTF-32 encoded Unicode byte order mark.",signature:{0:255,1:254,2:0,3:0},extractor:null},{name:"UTF-16 LE text",extension:"utf16le",mime:"charset/utf16le",description:"Little-endian UTF-16 encoded Unicode byte order mark.",signature:{0:255,1:254},extractor:null},{name:"Web Open Font Format",extension:"woff",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:70,4:0,5:1,6:0,7:0},extractor:null},{name:"Web Open Font Format 2",extension:"woff2",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:50,4:0,5:1,6:0,7:0},extractor:null},{name:"Embedded OpenType font",extension:"eot",mime:"application/octet-stream",description:"",signature:[{8:2,9:0,10:1,34:76,35:80},{8:1,9:0,10:0,34:76,35:80},{8:2,9:0,10:2,34:76,35:80}],extractor:null},{name:"TrueType Font",extension:"ttf",mime:"application/font-sfnt",description:"",signature:{0:0,1:1,2:0,3:0,4:0},extractor:null},{name:"OpenType Font",extension:"otf",mime:"application/font-sfnt",description:"",signature:{0:79,1:84,2:84,3:79,4:0},extractor:null},{name:"SQLite",extension:"sqlite",mime:"application/x-sqlite3",description:"",signature:{0:83,1:81,2:76,3:105},extractor:function(A,e){var t=new eA(A.slice(e));t.moveTo(16);var I=t.readInt(2);t.moveTo(28);var r=t.readInt(4);return t.moveTo(I*r),t.carve()}},{name:"BitTorrent link",extension:"torrent",mime:"application/x-bittorrent",description:"",signature:[{0:100,1:56,2:58,3:97,4:110,5:110,6:111,7:117,8:110,9:99,10:101,11:35,12:35,13:58},{0:100,1:52,2:58,3:105,4:110,5:102,6:111,7:100,8:[52,53,54],9:58}],extractor:null},{name:"Cryptocurrency wallet",extension:"wallet",mime:"application/octet-stream",description:"",signature:{0:0,1:0,2:0,3:0,4:1,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:98,13:49,14:5,15:0},extractor:null},{name:"Registry fragment",extension:"hbin",mime:"application/octet-stream",description:"",signature:{0:104,1:98,2:105,3:110,4:0},extractor:null},{name:"Registry script",extension:"rgs",mime:"application/octet-stream",description:"",signature:{0:72,1:75,2:67,3:82,4:13,5:10,6:92,7:123},extractor:null},{name:"WinNT Registry Hive",extension:"registry",mime:"application/octet-stream",description:"",signature:{0:114,1:101,2:103,3:102},extractor:null},{name:"Windows Event Log",extension:"evt",mime:"application/octet-stream",description:"",signature:{0:48,1:0,2:0,3:0,4:76,5:102,6:76,7:101},extractor:function(A,e){var t=new eA(A.slice(e));t.moveTo(20);var I=t.readInt(4,"le");t.moveTo(I);var r=t.readInt(4,"le");return t.moveForwardsBy(r-4),t.carve()}},{name:"Windows Event Log",extension:"evtx",mime:"application/octet-stream",description:"",signature:{0:69,1:108,2:102,3:70,4:105,5:108,6:101},extractor:function(A,e){var t=new eA(A.slice(e));t.moveTo(40);var I=t.readInt(4,"le")-44;for(t.moveForwardsBy(I);t.hasMore()&&t.getBytes(7).join("")===[69,108,102,67,104,110,107].join("");)t.moveForwardsBy(65529);return t.consumeWhile(0),t.carve()}},{name:"Windows Pagedump",extension:"dmp",mime:"application/octet-stream",description:"",signature:{0:80,1:65,2:71,3:69,4:68,5:85,6:[77,54],7:[80,52]},extractor:function(A,e){var t=new eA(A.slice(e));return t.moveTo(112),t.moveTo(4096*(t.readInt(4,"le")+1)),t.carve()}},{name:"Windows Prefetch",extension:"pf",mime:"application/x-pf",description:"",signature:{0:[17,23,26],1:0,2:0,3:0,4:83,5:67,6:67,7:65},extractor:function(A,e){var t=new eA(A.slice(e));return t.moveTo(12),t.moveTo(t.readInt(4,"be")),t.carve()}},{name:"Windows Prefetch (Win 10)",extension:"pf",mime:"application/x-pf",description:"",signature:{0:77,1:65,2:77,3:4,7:0},extractor:function(A,e){var t=new eA(A.slice(e));return t.moveTo(t.readInt(4,"be")),t.carve()}},{name:"PList (XML)",extension:"plist",mime:"application/xml",description:"",signature:{39:60,40:33,41:68,42:79,43:67,44:84,45:89,46:80,47:69,48:32,49:112,50:108,51:105,52:115,53:116},extractor:function(A,e){var t=new eA(A.slice(e)),I=0;for(t.continueUntil([60,112,108,105,115,116]),t.moveForwardsBy(6),I++;I>0&&t.hasMore();)60===t.readInt(1)&&(t.getBytes(5).join("")===[112,108,105,115,116].join("")?I++:t.moveBackwardsBy(5),t.getBytes(7).join("")===[47,112,108,105,115,116,62].join("")?I--:t.moveBackwardsBy(7));return t.consumeIf(10),t.carve()}},{name:"PList (binary)",extension:"bplist,plist,ipmeta,abcdp,mdbackup,mdinfo,strings,nib,ichat,qtz,webbookmark,webhistory",mime:"application/x-plist",description:"",signature:{0:98,1:112,2:108,3:105,4:115,5:116,6:48,7:48},extractor:null},{name:"MacOS X Keychain",extension:"keychain",mime:"application/octet-stream",description:"",signature:{0:107,1:121,2:99,3:104,4:0,5:1},extractor:function(A,e){var t=new eA(A.slice(e));return t.moveTo(20),t.moveForwardsBy(t.readInt(4)),t.carve()}},{name:"TCP Packet",extension:"tcp",mime:"application/tcp",description:"",signature:{12:8,13:0,14:69,15:0,21:0,22:function(A){return A>=1&&A<=128},23:6},extractor:null},{name:"UDP Packet",extension:"udp",mime:"application/udp",description:"",signature:{12:8,13:0,14:69,15:0,16:[0,1,2,3,4,5],22:function(A){return A>=1&&A<=128},23:17},extractor:null},{name:"Compiled HTML",extension:"chm,chw,chi",mime:"application/vnd.ms-htmlhelp",description:"",signature:{0:73,1:84,2:83,3:70,4:3,5:0,6:0,7:0},extractor:null},{name:"Windows Password",extension:"pwl",mime:"application/octet-stream",description:"",signature:{0:227,1:130,2:133,3:150},extractor:null},{name:"Bitlocker recovery key",extension:"bitlocker",mime:"application/octet-stream",description:"",signature:{0:255,1:254,2:66,3:0,4:105,5:0,6:116,7:0,8:76,9:0,10:111,11:0,12:99,13:0,14:107,15:0,16:101,17:0,18:114,19:0,20:32,21:0},extractor:null},{name:"Certificate",extension:"cer,cat,p7b,p7c,p7m,p7s,swz,rsa,crl,crt,der",mime:"application/pkix-cert",description:"",signature:{0:48,1:130,4:[6,10,48]},extractor:null},{name:"Certificate",extension:"cat,swz,p7m",mime:"application/vnd.ms-pki.seccat",description:"",signature:{0:48,1:131,2:function(A){return 0!==A},5:6,6:9},extractor:null},{name:"PGP pubring",extension:"pkr,gpg",mime:"application/pgp-keys",description:"",signature:{0:153,1:1,2:[13,162],3:4},extractor:null},{name:"PGP secring",extension:"skr",mime:"application/pgp-keys",description:"",signature:[{0:149,1:1,2:207,3:4},{0:149,1:3,2:198,3:4},{0:149,1:5,2:134,3:4}],extractor:null},{name:"PGP Safe",extension:"pgd",mime:"application/pgp-keys",description:"",signature:{0:80,1:71,2:80,3:100,4:77,5:65,6:73,7:78,8:96,9:1,10:0},extractor:null},{name:"Task Scheduler",extension:"job",mime:"application/octet-stream",description:"",signature:{0:[0,1,2,3],1:[5,6],2:1,3:0,20:70,21:0},extractor:null},{name:"Windows Shortcut",extension:"lnk",mime:"application/x-ms-shortcut",description:"",signature:{0:76,1:0,2:0,3:0,4:1,5:20,6:2,7:0,8:0,9:0,10:0,11:0,12:192,13:0,14:0,15:0,16:0,17:0,18:0,19:70},extractor:function(A,e){var t=new eA(A.slice(e));return t.moveTo(52),t.moveTo(t.readInt(4,"le")),t.carve()}},{name:"Bash",extension:"bash",mime:"application/bash",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:98,8:97,9:115,10:104},extractor:null},{name:"Shell",extension:"sh",mime:"application/sh",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:115,8:104},extractor:null},{name:"Python",extension:"py,pyc,pyd,pyo,pyw,pyz",mime:"application/python",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:121,13:116,14:104,15:111,16:110,17:[50,51,10,13]},extractor:null},{name:"Ruby",extension:"rb",mime:"application/ruby",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:114,12:117,13:98,14:121},extractor:null},{name:"perl",extension:"pl,pm,t,pod",mime:"application/perl",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:101,13:114,14:108},extractor:null},{name:"php",extension:"php,phtml,php3,php4,php5,php7,phps,php-s,pht,phar",mime:"application/php",description:"",signature:{0:60,1:63,2:112,3:104,4:112},extractor:null},{name:"Smile",extension:"sml",mime:"\tapplication/x-jackson-smile",description:"",signature:{0:58,1:41,2:10},extractor:null},{name:"Lua Bytecode",extension:"luac",mime:"application/x-lua",description:"",signature:{0:27,1:76,2:117,3:97},extractor:null},{name:"WebAssembly binary",extension:"wasm",mime:"application/octet-stream",description:"",signature:{0:0,1:97,2:115,3:109},extractor:null}]};function iA(A,e){var t=new eA(A.slice(e));t.continueUntil([80,75,5,6]),t.moveForwardsBy(20);var I=t.readInt(2,"le");return t.moveForwardsBy(I),t.carve()}function gA(A,e){var t="207250237254",I=new eA(A.slice(e)),r=I.getBytes(4).join("");return I.moveTo(function(A,e,t){var I=28;e&&(I+=4),A.moveTo(16);var r=A.readInt(4,t);return function(A,e,t,I){for(var r=0,i=0;i0&&A.moveForwardsBy(1)}var EA=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],hA=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function QA(A,e,t){for(var I,r=0;(I=uA(A,e))&&256!==I;){if(++r>1e4)throw new Error("Caught in probable infinite loop while parsing Huffman Block");I<256||(A.readBits(EA[I-257],"le"),I=uA(A,t),A.readBits(hA[I],"le"))}}function cA(A){for(var e=Math.max.apply(Math,A),t=Math.min.apply(Math,A),I=1<>=1;for(var s=i<<16|o,E=a;E>>16;if(n>i)throw new Error(`Invalid Huffman Code length while parsing DEFLATE block at pos ${A.position}: ${n}`);return A.moveBackwardsByBits(i-n),65535&g}function fA(A,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(A.length){for(var I=0;I2&&void 0!==arguments[2]?arguments[2]:0;for(var I in A){var r=parseInt(I,10)+t;switch(typeof A[I]){case"number":if(e[r]!==A[I])return!1;break;case"object":if(A[I].indexOf(e[r])<0)return!1;break;case"function":if(!A[I](e[r]))return!1;break;default:throw new Error(`Unrecognised signature type at offset ${I}`)}}return!0}const yA=function(){function A(){I(this,A)}return g(A,null,[{key:"checkForValue",value:function(A){if(void 0===A)throw new Error("only use translation methods with .bind")}},{key:"toArrayBuffer",value:function(){throw new Error("toArrayBuffer has not been implemented")}},{key:"fromArrayBuffer",value:function(){throw new Error("fromArrayBuffer has not been implemented")}}]),A}();const pA=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){return I(this,i),r.apply(this,arguments)}return g(i,null,[{key:"toArrayBuffer",value:function(){i.checkForValue(this.value),this.value=new Uint8Array(this.value).buffer}},{key:"fromArrayBuffer",value:function(){i.checkForValue(this.value),this.value=Array.prototype.slice.call(new Uint8Array(this.value))}}]),i}(yA);const wA=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){return I(this,i),r.apply(this,arguments)}return g(i,null,[{key:"toArrayBuffer",value:function(){i.checkForValue(this.value),this.value=AA.isBigNumber(this.value)?b.strToArrayBuffer(this.value.toFixed()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){i.checkForValue(this.value);try{this.value=new AA(b.arrayBufferToStr(this.value))}catch(A){this.value=new AA(NaN)}}}]),i}(yA);const dA=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){return I(this,i),r.apply(this,arguments)}return g(i,null,[{key:"toArrayBuffer",value:function(){var A=this;if(i.checkForValue(this.value),!G())return new Promise((function(e,t){b.readFile(A.value).then((function(e){return A.value=e.buffer})).then(e).catch(t)}));this.value=b.readFileSync(this.value)}},{key:"fromArrayBuffer",value:function(){i.checkForValue(this.value),this.value=new File(this.value,"unknown")}}]),i}(yA);const FA=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){return I(this,i),r.apply(this,arguments)}return g(i,null,[{key:"toArrayBuffer",value:function(){i.checkForValue(this.value),this.value=this.value?b.strToArrayBuffer(this.value):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){i.checkForValue(this.value),this.value=this.value?b.arrayBufferToStr(this.value):""}}]),i}(yA);const DA=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){return I(this,i),r.apply(this,arguments)}return g(i,null,[{key:"toArrayBuffer",value:function(){i.checkForValue(this.value),this.value=this.value?b.strToArrayBuffer(b.unescapeHtml(b.stripHtmlTags(this.value,!0))):new ArrayBuffer}}]),i}(FA);const SA=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){return I(this,i),r.apply(this,arguments)}return g(i,null,[{key:"toArrayBuffer",value:function(){i.checkForValue(this.value),this.value=void 0!==this.value?b.strToArrayBuffer(JSON.stringify(this.value,null,4)):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){i.checkForValue(this.value),this.value=JSON.parse(b.arrayBufferToStr(this.value))}}]),i}(yA);const mA=function(A){o(a,A);var e,t,r,i,n=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,e=B(r);if(i){var t=B(this).constructor;A=Reflect.construct(e,arguments,t)}else A=e.apply(this,arguments);return C(this,A)});function a(){return I(this,a),n.apply(this,arguments)}return g(a,null,[{key:"toArrayBuffer",value:(t=E(Q().mark((function A(){return Q().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(a.checkForValue(this.value),!G()){A.next=5;break}this.value=this.value.map((function(A){return Uint8Array.from(A.data)})),A.next=8;break;case 5:return A.next=7,a.concatenateTypedArraysWithTypedElements.apply(a,c(this.value));case 7:this.value=A.sent;case 8:case"end":return A.stop()}}),A,this)}))),function(){return t.apply(this,arguments)})},{key:"fromArrayBuffer",value:function(){a.checkForValue(this.value),this.value=[new File(this.value,"unknown")]}},{key:"concatenateTypedArraysWithTypedElements",value:(e=E(Q().mark((function A(){var e,t,I,r,i,g,n,o,a,C,B,s,E,h=arguments;return Q().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:for(e=0,t=h.length,I=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(I(this,A),this.value=new ArrayBuffer(0),this.type=A.ARRAY_BUFFER,e&&Object.prototype.hasOwnProperty.call(e,"value")&&Object.prototype.hasOwnProperty.call(e,"type"))this.set(e.value,e.type);else if(e&&null!==t)this.set(e,t);else if(e){var r=A.typeEnum(e.constructor.name);this.set(e,r)}}var e;return g(A,[{key:"get",value:function(e){var t=this;return"string"==typeof e&&(e=A.typeEnum(e)),this.type!==e?G()?(this._translate(e),this.value):new Promise((function(A,I){t._translate(e).then((function(){A(t.value)})).catch(I)})):this.value}},{key:"set",value:function(e,t){if("string"==typeof t&&(t=A.typeEnum(t)),f().debug("Dish type: "+A.enumLookup(t)),this.value=e,this.type=t,!this.valid()){var I=b.truncate(JSON.stringify(this.value),25);throw new M(`Data is not a valid ${A.enumLookup(t)}: ${I}`)}}},{key:"presentAs",value:function(A){return this.clone().get(A)}},{key:"detectDishType",value:function(){var A=function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(rA);if(A instanceof ArrayBuffer&&(A=new Uint8Array(A)),!(A&&A.length>1))return[];var t=[],I={};for(var r in rA)e.includes(r)&&(I[r]=rA[r]);for(var i in I)I[i].forEach((function(e){fA(e.signature,A)&&t.push(e)}));return t}(new Uint8Array(this.value.slice(0,2048)));return A.length&&A[0].mime&&"text/plain"===A[0].mime?A[0].mime:null}},{key:"getTitle",value:(e=E(Q().mark((function e(t){var I,r;return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:I="",e.t0=this.type,e.next=e.t0===A.FILE?4:e.t0===A.LIST_FILE?6:e.t0===A.JSON?8:e.t0===A.NUMBER||e.t0===A.BIG_NUMBER?10:e.t0===A.ARRAY_BUFFER||e.t0===A.BYTE_ARRAY?12:15;break;case 4:return I=this.value.name,e.abrupt("break",26);case 6:return I=`${this.value.length} file(s)`,e.abrupt("break",26);case 8:return I="application/json",e.abrupt("break",26);case 10:return I=this.value.toString(),e.abrupt("break",26);case 12:if(null===(I=this.detectDishType())){e.next=15;break}return e.abrupt("break",26);case 15:return e.prev=15,(r=this.clone()).value=r.value.slice(0,256),e.next=20,r.get(A.STRING);case 20:I=e.sent,e.next=26;break;case 23:e.prev=23,e.t1=e.catch(15),f().error(`${A.enumLookup(this.type)} cannot be sliced. ${e.t1}`);case 26:return e.abrupt("return",I.slice(0,t));case 27:case"end":return e.stop()}}),e,this,[[15,23]])}))),function(A){return e.apply(this,arguments)})},{key:"valid",value:function(){switch(this.type){case A.BYTE_ARRAY:if(!(this.value instanceof Uint8Array||this.value instanceof Array))return!1;for(var e=0;e255)return!1;return!0;case A.STRING:case A.HTML:return"string"==typeof this.value;case A.NUMBER:return"number"==typeof this.value;case A.ARRAY_BUFFER:return this.value instanceof ArrayBuffer;case A.BIG_NUMBER:if(AA.isBigNumber(this.value))return!0;if(Object.keys(this.value).sort().equals(["c","e","s"])){var t=new AA;return t.c=this.value.c,t.e=this.value.e,t.s=this.value.s,this.value=t,!0}return!1;case A.JSON:return!0;case A.FILE:return this.value instanceof File;case A.LIST_FILE:return this.value instanceof Array&&this.value.reduce((function(A,e){return A&&e instanceof File}),!0);default:return!1}}},{key:"size",get:function(){switch(this.type){case A.BYTE_ARRAY:case A.STRING:case A.HTML:return this.value.length;case A.NUMBER:case A.BIG_NUMBER:return this.value.toString().length;case A.ARRAY_BUFFER:return this.value.byteLength;case A.JSON:return JSON.stringify(this.value).length;case A.FILE:return this.value.size;case A.LIST_FILE:return this.value.reduce((function(A,e){return A+e.size}),0);default:return-1}}},{key:"clone",value:function(){var e=new A;switch(this.type){case A.STRING:case A.HTML:case A.NUMBER:case A.BIG_NUMBER:e.set(this.value,this.type);break;case A.BYTE_ARRAY:case A.JSON:e.set(JSON.parse(JSON.stringify(this.value)),this.type);break;case A.ARRAY_BUFFER:e.set(this.value.slice(0),this.type);break;case A.FILE:e.set(new File([this.value],this.value.name,{type:this.value.type,lastModified:this.value.lastModified}),this.type);break;case A.LIST_FILE:e.set(this.value.map((function(A){return new File([A],A.name,{type:A.type,lastModified:A.lastModified})})),this.type);break;default:throw new M("Cannot clone Dish, unknown type")}return e}},{key:"_translate",value:function(e){var t=this;if(f().debug(`Translating Dish from ${A.enumLookup(this.type)} to ${A.enumLookup(e)}`),!G())return new Promise((function(I,r){t._toArrayBuffer().then((function(){return t.type=A.ARRAY_BUFFER})).then((function(){t._fromArrayBuffer(e),I()})).catch(r)}));this._toArrayBuffer(),this.type=A.ARRAY_BUFFER,this._fromArrayBuffer(e)}},{key:"_toArrayBuffer",value:function(){var e=this,t={browser:{[A.STRING]:function(){return Promise.resolve(FA.toArrayBuffer.bind(e)())},[A.NUMBER]:function(){return Promise.resolve(UA.toArrayBuffer.bind(e)())},[A.HTML]:function(){return Promise.resolve(DA.toArrayBuffer.bind(e)())},[A.ARRAY_BUFFER]:function(){return Promise.resolve()},[A.BIG_NUMBER]:function(){return Promise.resolve(wA.toArrayBuffer.bind(e)())},[A.JSON]:function(){return Promise.resolve(SA.toArrayBuffer.bind(e)())},[A.FILE]:function(){return dA.toArrayBuffer.bind(e)()},[A.LIST_FILE]:function(){return Promise.resolve(mA.toArrayBuffer.bind(e)())},[A.BYTE_ARRAY]:function(){return Promise.resolve(pA.toArrayBuffer.bind(e)())}},node:{[A.STRING]:function(){return FA.toArrayBuffer.bind(e)()},[A.NUMBER]:function(){return UA.toArrayBuffer.bind(e)()},[A.HTML]:function(){return DA.toArrayBuffer.bind(e)()},[A.ARRAY_BUFFER]:function(){},[A.BIG_NUMBER]:function(){return wA.toArrayBuffer.bind(e)()},[A.JSON]:function(){return SA.toArrayBuffer.bind(e)()},[A.FILE]:function(){return dA.toArrayBuffer.bind(e)()},[A.LIST_FILE]:function(){return mA.toArrayBuffer.bind(e)()},[A.BYTE_ARRAY]:function(){return pA.toArrayBuffer.bind(e)()}}};try{return t[G()?"node":"browser"][this.type]()}catch(e){throw new M(`Error translating from ${A.enumLookup(this.type)} to ArrayBuffer: ${e}`)}}},{key:"_fromArrayBuffer",value:function(e){var t=this,I={[A.STRING]:function(){return FA.fromArrayBuffer.bind(t)()},[A.NUMBER]:function(){return UA.fromArrayBuffer.bind(t)()},[A.HTML]:function(){return DA.fromArrayBuffer.bind(t)()},[A.ARRAY_BUFFER]:function(){},[A.BIG_NUMBER]:function(){return wA.fromArrayBuffer.bind(t)()},[A.JSON]:function(){return SA.fromArrayBuffer.bind(t)()},[A.FILE]:function(){return dA.fromArrayBuffer.bind(t)()},[A.LIST_FILE]:function(){return mA.fromArrayBuffer.bind(t)()},[A.BYTE_ARRAY]:function(){return pA.fromArrayBuffer.bind(t)()}};try{I[e](),this.type=e}catch(t){throw new M(`Error translating from ArrayBuffer to ${A.enumLookup(e)}: ${t}`)}}}],[{key:"typeEnum",value:function(e){switch(e.toLowerCase()){case"bytearray":case"byte array":return A.BYTE_ARRAY;case"string":return A.STRING;case"number":return A.NUMBER;case"html":return A.HTML;case"arraybuffer":case"array buffer":return A.ARRAY_BUFFER;case"bignumber":case"big number":return A.BIG_NUMBER;case"json":case"object":return A.JSON;case"file":return A.FILE;case"list":return A.LIST_FILE;default:throw new M("Invalid data type string. No matching enum.")}}},{key:"enumLookup",value:function(e){switch(e){case A.BYTE_ARRAY:return"byteArray";case A.STRING:return"string";case A.NUMBER:return"number";case A.HTML:return"html";case A.ARRAY_BUFFER:return"ArrayBuffer";case A.BIG_NUMBER:return"BigNumber";case A.JSON:return"JSON";case A.FILE:return"File";case A.LIST_FILE:return"List";default:throw new M("Invalid data type enum. No matching type.")}}}]),A}();kA.BYTE_ARRAY=0,kA.STRING=1,kA.NUMBER=2,kA.HTML=3,kA.ARRAY_BUFFER=4,kA.BIG_NUMBER=5,kA.JSON=6,kA.FILE=7,kA.LIST_FILE=8;const GA=kA,vA=function(){function A(e){I(this,A),this.name="",this.type="",this._value=null,this.disabled=!1,this.hint="",this.rows=0,this.toggleValues=[],this.target=null,this.defaultIndex=0,this.maxLength=null,this.min=null,this.max=null,this.step=1,e&&this._parseConfig(e)}return g(A,[{key:"_parseConfig",value:function(A){this.name=A.name,this.type=A.type,this.defaultValue=A.value,this.disabled=!!A.disabled,this.hint=A.hint||!1,this.rows=A.rows||!1,this.toggleValues=A.toggleValues,this.target=void 0!==A.target?A.target:null,this.defaultIndex=void 0!==A.defaultIndex?A.defaultIndex:0,this.maxLength=A.maxLength||null,this.min=A.min,this.max=A.max,this.step=A.step}},{key:"config",get:function(){return this._value}},{key:"value",get:function(){return this._value},set:function(e){this._value=A.prepare(e,this.type)}}],[{key:"prepare",value:function(A,e){var t;switch(e){case"binaryString":case"binaryShortString":case"editableOption":case"editableOptionShort":return b.parseEscapedChars(A);case"byteArray":return"string"==typeof A?F(A=A.replace(/\s+/g,"")):A;case"number":if(null===A)return A;if(t=parseFloat(A),isNaN(t))throw"Invalid ingredient value. Not a number: "+b.truncate(A.toString(),10);return t;default:return A}}}]),A}();var RA=function(){function A(){I(this,A),this._inputType=-1,this._outputType=-1,this._presentType=-1,this._breakpoint=!1,this._disabled=!1,this._flowControl=!1,this._manualBake=!1,this._ingList=[],this.name="",this.module="",this.description="",this.infoURL=null}return g(A,[{key:"run",value:function(A,e){return A}},{key:"highlight",value:function(A,e){return!1}},{key:"highlightReverse",value:function(A,e){return!1}},{key:"present",value:function(A,e){return A}},{key:"inputType",get:function(){return GA.enumLookup(this._inputType)},set:function(A){this._inputType=GA.typeEnum(A)}},{key:"outputType",get:function(){return GA.enumLookup(this._outputType)},set:function(A){this._outputType=GA.typeEnum(A),this._presentType<0&&(this._presentType=this._outputType)}},{key:"presentType",get:function(){return GA.enumLookup(this._presentType)},set:function(A){this._presentType=GA.typeEnum(A)}},{key:"args",get:function(){return this._ingList.map((function(A){var e={name:A.name,type:A.type,value:A.defaultValue};return A.toggleValues&&(e.toggleValues=A.toggleValues),A.hint&&(e.hint=A.hint),A.rows&&(e.rows=A.rows),A.disabled&&(e.disabled=A.disabled),A.target&&(e.target=A.target),A.defaultIndex&&(e.defaultIndex=A.defaultIndex),A.maxLength&&(e.maxLength=A.maxLength),"number"==typeof A.min&&(e.min=A.min),"number"==typeof A.max&&(e.max=A.max),A.step&&(e.step=A.step),e}))},set:function(A){var e=this;A.forEach((function(A){var t=new vA(A);e.addIngredient(t)}))}},{key:"config",get:function(){return{op:this.name,args:this._ingList.map((function(A){return A.config}))}}},{key:"addIngredient",value:function(A){this._ingList.push(A)}},{key:"ingValues",get:function(){return this._ingList.map((function(A){return A.value}))},set:function(A){var e=this;A.forEach((function(A,t){e._ingList[t].value=A}))}},{key:"breakpoint",get:function(){return this._breakpoint},set:function(A){this._breakpoint=!!A}},{key:"disabled",get:function(){return this._disabled},set:function(A){this._disabled=!!A}},{key:"flowControl",get:function(){return this._flowControl},set:function(A){this._flowControl=!!A}},{key:"manualBake",get:function(){return this._manualBake},set:function(A){this._manualBake=!!A}}]),A}();const bA=RA;var MA=__webpack_require__(21128),YA=__webpack_require__.n(MA);const NA=function(A){o(n,A);var e,r,i=(e=n,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,t=B(e);if(r){var I=B(this).constructor;A=Reflect.construct(t,arguments,I)}else A=t.apply(this,arguments);return C(this,A)});function n(){var A;return I(this,n),(A=i.call(this)).name="Bzip2 Compress",A.module="Compression",A.description="Bzip2 is a compression library developed by Julian Seward (of GHC fame) that uses the Burrows-Wheeler algorithm. It only supports compressing single files and its compression is slow, however is more effective than Deflate (.gz & .zip).",A.infoURL="https://wikipedia.org/wiki/Bzip2",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Block size (100s of kb)",type:"number",value:9,min:1,max:9},{name:"Work factor",type:"number",value:30}],A}return g(n,[{key:"run",value:function(A,e){var I=t(e,2),r=I[0],i=I[1];if(A.byteLength<=0)throw new p("Please provide an input.");return R()&&self.sendStatusMessage("Loading Bzip2..."),new Promise((function(e,t){YA()().then((function(I){R()&&self.sendStatusMessage("Compressing data...");var g=new Uint8Array(A),n=I.compressBZ2(g,r,i);if(0!==n.error)t(new p(n.error_msg));else{var o=n.output;e(o.buffer.slice(o.byteOffset,o.byteLength+o.byteOffset))}}))}))}}]),n}(bA);const LA=function(A){o(a,A);var e,r,i,n=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,e=B(r);if(i){var t=B(this).constructor;A=Reflect.construct(e,arguments,t)}else A=e.apply(this,arguments);return C(this,A)});function a(){var A;return I(this,a),(A=n.call(this)).name="Bzip2 Decompress",A.module="Compression",A.description="Decompresses data using the Bzip2 algorithm.",A.infoURL="https://wikipedia.org/wiki/Bzip2",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Use low-memory, slower decompression algorithm",type:"boolean",value:!1}],A.checks=[{pattern:"^\\x42\\x5a\\x68",flags:"",args:[]}],A}return g(a,[{key:"run",value:(e=E(Q().mark((function A(e,I){var r,i;return Q().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(r=t(I,1),i=r[0],!(e.byteLength<=0)){A.next=3;break}throw new p("Please provide an input.");case 3:return R()&&self.sendStatusMessage("Loading Bzip2..."),A.abrupt("return",new Promise((function(A,t){YA()().then((function(I){R()&&self.sendStatusMessage("Decompressing data...");var r=new Uint8Array(e),g=I.decompressBZ2(r,i?1:0);if(0!==g.error)t(new p(g.error_msg));else{var n=g.output;A(n.buffer.slice(n.byteOffset,n.byteLength+n.byteOffset))}}))})));case 5:case"end":return A.stop()}}),A)}))),function(A,t){return e.apply(this,arguments)})}]),a}(bA);var HA=__webpack_require__(80382);var JA=__webpack_require__.n(HA)().Zlib;const qA=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){var A;return I(this,i),(A=r.call(this)).name="Gunzip",A.module="Compression",A.description="Decompresses data which has been compressed using the deflate algorithm with gzip headers.",A.infoURL="https://wikipedia.org/wiki/Gzip",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[],A.checks=[{pattern:"^\\x1f\\x8b\\x08",flags:"",args:[]}],A}return g(i,[{key:"run",value:function(A,e){var t=new JA.Gunzip(new Uint8Array(A));return new Uint8Array(t.decompress()).buffer}}]),i}(bA);var KA=__webpack_require__(77120),TA=__webpack_require__.n(KA),xA=TA().Zlib,_A=["Dynamic Huffman Coding","Fixed Huffman Coding","None (Store)"],VA=["Adaptive","Block"],WA={"Fixed Huffman Coding":xA.Deflate.CompressionType.FIXED,"Dynamic Huffman Coding":xA.Deflate.CompressionType.DYNAMIC,"None (Store)":xA.Deflate.CompressionType.NONE},PA=__webpack_require__(62452);var OA=__webpack_require__.n(PA)().Zlib;const ZA=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){var A;return I(this,i),(A=r.call(this)).name="Gzip",A.module="Compression",A.description="Compresses data using the deflate algorithm with gzip headers.",A.infoURL="https://wikipedia.org/wiki/Gzip",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Compression type",type:"option",value:_A},{name:"Filename (optional)",type:"string",value:""},{name:"Comment (optional)",type:"string",value:""},{name:"Include file checksum",type:"boolean",value:!1}],A}return g(i,[{key:"run",value:function(A,e){var t=e[1],I=e[2],r={deflateOptions:{compressionType:WA[e[0]]},flags:{fhcrc:e[3]}};t.length&&(r.flags.fname=!0,r.filename=t),I.length&&(r.flags.comment=!0,r.comment=I);var i=new OA.Gzip(new Uint8Array(A),r),g=new Uint8Array(i.compress());return!r.flags.comment||16&g[3]||(g[3]|=16),g.buffer}}]),i}(bA);var jA=__webpack_require__(15405);const XA=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){var A;return I(this,i),(A=r.call(this)).name="LZ4 Compress",A.module="Compression",A.description="LZ4 is a lossless data compression algorithm that is focused on compression and decompression speed. It belongs to the LZ77 family of byte-oriented compression schemes.",A.infoURL="https://wikipedia.org/wiki/LZ4_(compression_algorithm)",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[],A}return g(i,[{key:"run",value:function(A,e){var t=new Uint8Array(A);return jA.compress(t).buffer}}]),i}(bA);const zA=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){var A;return I(this,i),(A=r.call(this)).name="LZ4 Decompress",A.module="Compression",A.description="LZ4 is a lossless data compression algorithm that is focused on compression and decompression speed. It belongs to the LZ77 family of byte-oriented compression schemes.",A.infoURL="https://wikipedia.org/wiki/LZ4_(compression_algorithm)",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[],A}return g(i,[{key:"run",value:function(A,e){var t=new Uint8Array(A);return jA.decompress(t).buffer}}]),i}(bA);var $A=1,Ae=2,ee=3,te="function"==typeof setImmediate?setImmediate:setTimeout,Ie=4294967296,re=[4294967295,-Ie],ie=[0,-0x8000000000000000],ge=[0,0],ne=[1,0];function oe(A,e){postMessage({action:ee,cbn:e,result:A})}function ae(A){var e=[];return e[A-1]=void 0,e}function Ce(A,e){return Ee(A[0]+e[0],A[1]+e[1])}function Be(A,e){return t=~~Math.max(Math.min(A[1]/Ie,2147483647),-2147483648)&~~Math.max(Math.min(e[1]/Ie,2147483647),-2147483648),I=ce(A)&ce(e),r=I,I<0&&(r+=Ie),[r,t*Ie];var t,I,r}function se(A,e){var t,I;return A[0]==e[0]&&A[1]==e[1]?0:(t=A[1]<0,I=e[1]<0,t&&!I?-1:!t&&I?1:ye(A,e)[1]<0?-1:1)}function Ee(A,e){var t,I;for(A%=0x10000000000000000,e=(e%=0x10000000000000000)-(t=e%Ie)+(I=Math.floor(A/Ie)*Ie),A=A-I+t;A<0;)A+=Ie,e-=Ie;for(;A>4294967295;)A-=Ie,e+=Ie;for(e%=0x10000000000000000;e>0x7fffffff00000000;)e-=0x10000000000000000;for(;e<-0x8000000000000000;)e+=0x10000000000000000;return[A,e]}function he(A,e){return A[0]==e[0]&&A[1]==e[1]}function Qe(A){return A>=0?[A,0]:[A+Ie,-Ie]}function ce(A){return A[0]>=2147483648?~~Math.max(Math.min(A[0]-Ie,2147483647),-2147483648):~~Math.max(Math.min(A[0],2147483647),-2147483648)}function ue(A){return A<=30?1<=0x8000000000000000&&(I-=0x10000000000000000),[r-=t,I]}function le(A,e){var t;return t=ue(e&=63),Ee(Math.floor(A[0]/t),A[1]/t)}function ye(A,e){return Ee(A[0]-e[0],A[1]-e[1])}function pe(A,e){return A.buf=e,A.pos=0,A.count=e.length,A}function we(A){return A.pos>=A.count?-1:255&A.buf[A.pos++]}function de(A,e,t,I){return A.pos>=A.count?-1:(I=Math.min(I,A.count-A.pos),Ue(A.buf,A.pos,e,t,I),A.pos+=I,I)}function Fe(A){return A.buf=ae(32),A.count=0,A}function De(A){var e=A.buf;return e.length=A.count,e}function Se(A,e){A.buf[A.count++]=e<<24>>24}function me(A,e,t,I){Ue(e,t,A.buf,A.count,I),A.count+=I}function Ue(A,e,t,I,r){for(var i=0;i1<>24;for(var t=0;t<4;++t)A.properties[1+t]=A._dictionarySize>>8*t<<24>>24;me(e,A.properties,0,5)}(i,t),g=0;g<64;g+=8)Se(t,255&ce(le(I,g)));A.chunker=(i._needReleaseMFStream=0,i._inStream=e,i._finished=0,function(A){var e,t;A._matchFinder||(e={},t=4,A._matchFinderType||(t=2),function(A,e){A.HASH_ARRAY=e>2,A.HASH_ARRAY?(A.kNumHashDirectBytes=0,A.kMinMatchCheck=4,A.kFixHashSize=66560):(A.kNumHashDirectBytes=2,A.kMinMatchCheck=3,A.kFixHashSize=0)}(e,t),A._matchFinder=e),function(A,e,t){var I,r;if(null==A.m_Coders||A.m_NumPrevBits!=t||A.m_NumPosBits!=e)for(A.m_NumPosBits=e,A.m_PosMask=(1<>1),function(A,e,t,I){var r;A._keepSizeBefore=e,A._keepSizeAfter=t,r=e+t+I,(null==A._bufferBase||A._blockSize!=r)&&(A._bufferBase=null,A._blockSize=r,A._bufferBase=ae(A._blockSize)),A._pointerToLastSafePosition=A._blockSize-t}(A,e+4096,I+274,256+~~((e+4096+I+274)/2)),A._matchMaxLen=I,i=e+1,A._cyclicBufferSize!=i&&(A._son=ae(2*(A._cyclicBufferSize=i))),g=65536,A.HASH_ARRAY&&(g=e-1,g|=g>>1,g|=g>>2,g|=g>>4,g|=g>>8,g>>=1,(g|=65535)>16777216&&(g>>=1),A._hashMask=g,g+=1,g+=A.kFixHashSize),g!=A._hashSizeSum&&(A._hash=ae(A._hashSizeSum=g)))}(A._matchFinder,A._dictionarySize,0,A._numFastBytes),A._dictionarySizePrev=A._dictionarySize,A._numFastBytesPrev=A._numFastBytes)}(i),i._rangeEncoder.Stream=t,function(A){(function(A){A._state=0,A._previousByte=0;for(var e=0;e<4;++e)A._repDistances[e]=0})(A),function(A){A._position=ge,A.Low=ge,A.Range=-1,A._cacheSize=1,A._cache=0}(A._rangeEncoder),vt(A._isMatch),vt(A._isRep0Long),vt(A._isRep),vt(A._isRepG0),vt(A._isRepG1),vt(A._isRepG2),vt(A._posEncoders),function(A){var e,t=1<>24}if(I=function(A){A.m_OutWindow={},A.m_RangeDecoder={},A.m_IsMatchDecoders=ae(192),A.m_IsRepDecoders=ae(12),A.m_IsRepG0Decoders=ae(12),A.m_IsRepG1Decoders=ae(12),A.m_IsRepG2Decoders=ae(12),A.m_IsRep0LongDecoders=ae(192),A.m_PosSlotDecoder=ae(4),A.m_PosDecoders=ae(114),A.m_PosAlignDecoder=pt({},4),A.m_LenDecoder=Oe({}),A.m_RepLenDecoder=Oe({}),A.m_LiteralDecoder={};for(var e=0;e<4;++e)A.m_PosSlotDecoder[e]=pt({},6);return A}({}),!function(A,e){var t,I,r,i,g,n,o;if(e.length<5)return 0;for(r=(o=255&e[0])%9,i=(n=~~(o/9))%5,g=~~(n/5),t=0,I=0;I<4;++I)t+=(255&e[1+I])<<8*I;return t>99999999||!function(A,e,t,I){if(e>8||t>4||I>4)return 0;!function(A,e,t){var I,r;if(null==A.m_Coders||A.m_NumPrevBits!=t||A.m_NumPosBits!=e)for(A.m_NumPosBits=e,A.m_PosMask=(1<4294967295?re:Qe(g)),A.chunker=function(A,e,t,I){return A.m_RangeDecoder.Stream=e,Ke(A.m_OutWindow),A.m_OutWindow._stream=t,function(A){A.m_OutWindow._streamPos=0,A.m_OutWindow._pos=0,vt(A.m_IsMatchDecoders),vt(A.m_IsRep0LongDecoders),vt(A.m_IsRepDecoders),vt(A.m_IsRepG0Decoders),vt(A.m_IsRepG1Decoders),vt(A.m_IsRepG2Decoders),vt(A.m_PosDecoders),function(A){var e,t;for(t=1<A._streamPos&&(I=A._streamPos-(A._pos+e)),++t,i=A._bufferOffset+A._pos+e,r=0;rA._pointerToLastSafePosition&&(A._posLimit=A._pointerToLastSafePosition-A._bufferOffset),void(A._streamEndWasReached=1);A._streamPos+=e,A._streamPos>=A._pos+A._keepSizeAfter&&(A._posLimit=A._streamPos-A._keepSizeAfter)}}function Ye(A,e){A._bufferOffset+=e,A._posLimit-=e,A._pos-=e,A._streamPos-=e}var Ne=function(){var A,e,t,I=[];for(A=0;A<256;++A){for(t=A,e=0;e<8;++e)0!=(1&t)?(t>>>=1,t^=-306674912):t>>>=1;I[A]=t}return I}();function Le(A){var e;(A._cyclicBufferPos+=1)>=A._cyclicBufferSize&&(A._cyclicBufferPos=0),function(A){A._pos+=1,A._pos>A._posLimit&&(A._bufferOffset+A._pos>A._pointerToLastSafePosition&&function(A){var e,t,I;for((I=A._bufferOffset+A._pos-A._keepSizeBefore)>0&&--I,t=A._bufferOffset+A._streamPos-I,e=0;e=A._windowSize&&(A._pos=0),A._streamPos=A._pos)}function qe(A,e){var t=A._pos-e-1;return t<0&&(t+=A._windowSize),A._buffer[t]}function Ke(A){Je(A),A._stream=null}function Te(A){return(A-=2)<4?A:3}function xe(A){return A<4?0:A<10?A-3:A-6}function _e(A){if(!A.alive)throw new Error("bad state");if(A.encoder)throw new Error("No encoding");return function(A){var e=function(A){var e,t,I,r,i,g;if(g=ce(A.nowPos64)&A.m_PosStateMask,Gt(A.m_RangeDecoder,A.m_IsMatchDecoders,(A.state<<4)+g)){if(Gt(A.m_RangeDecoder,A.m_IsRepDecoders,A.state))I=0,Gt(A.m_RangeDecoder,A.m_IsRepG0Decoders,A.state)?(Gt(A.m_RangeDecoder,A.m_IsRepG1Decoders,A.state)?(Gt(A.m_RangeDecoder,A.m_IsRepG2Decoders,A.state)?(t=A.rep3,A.rep3=A.rep2):t=A.rep2,A.rep2=A.rep1):t=A.rep1,A.rep1=A.rep0,A.rep0=t):Gt(A.m_RangeDecoder,A.m_IsRep0LongDecoders,(A.state<<4)+g)||(A.state=A.state<7?9:11,I=1),I||(I=Pe(A.m_RepLenDecoder,A.m_RangeDecoder,g)+2,A.state=A.state<7?8:11);else if(A.rep3=A.rep2,A.rep2=A.rep1,A.rep1=A.rep0,I=2+Pe(A.m_LenDecoder,A.m_RangeDecoder,g),A.state=A.state<7?7:10,(i=wt(A.m_PosSlotDecoder[Te(I)],A.m_RangeDecoder))>=4){if(r=(i>>1)-1,A.rep0=(2|1&i)<>>=1,I=A.Code-A.Range>>>31,A.Code-=A.Range&I-1,r=r<<1|1-I,-16777216&A.Range||(A.Code=A.Code<<8|we(A.Stream),A.Range<<=8);return r}(A.m_RangeDecoder,r-4)<<4,A.rep0+=function(A,e){var t,I,r=1,i=0;for(I=0;I=0||A.rep0>=A.m_DictionarySizeCheck)return-1;!function(A,e,t){var I=A._pos-e-1;for(I<0&&(I+=A._windowSize);0!=t;t-=1)I>=A._windowSize&&(I=0),A._buffer[A._pos]=A._buffer[I],A._pos+=1,I+=1,A._pos>=A._windowSize&&Je(A)}(A.m_OutWindow,A.rep0,I),A.nowPos64=Ce(A.nowPos64,Qe(I)),A.prevByte=qe(A.m_OutWindow,0)}else e=function(A,e,t){return A.m_Coders[((e&A.m_PosMask)<>>8-A.m_NumPrevBits)]}(A.m_LiteralDecoder,ce(A.nowPos64),A.prevByte),A.state<7?A.prevByte=function(A,e){var t=1;do{t=t<<1|Gt(e,A.m_Decoders,t)}while(t<256);return t<<24>>24}(e,A.m_RangeDecoder):A.prevByte=function(A,e,t){var I,r,i=1;do{if(r=t>>7&1,t<<=1,i=i<<1|(I=Gt(e,A.m_Decoders,(1+r<<8)+i)),r!=I){for(;i<256;)i=i<<1|Gt(e,A.m_Decoders,i);break}}while(i<256);return i<<24>>24}(e,A.m_RangeDecoder,qe(A.m_OutWindow,A.rep0)),function(A,e){A._buffer[A._pos]=e,A._pos+=1,A._pos>=A._windowSize&&Je(A)}(A.m_OutWindow,A.prevByte),A.state=xe(A.state),A.nowPos64=Ce(A.nowPos64,ne);return 0}(A.decoder);if(-1==e)throw new Error("corrupted input");A.inBytesProcessed=re,A.outBytesProcessed=A.decoder.nowPos64,(e||se(A.decoder.outSize,ge)>=0&&se(A.decoder.nowPos64,A.decoder.outSize)>=0)&&(Je(A.decoder.m_OutWindow),Ke(A.decoder.m_OutWindow),A.decoder.m_RangeDecoder.Stream=null,A.alive=0)}(A),A.alive}function Ve(A){if(!A.alive)throw new Error("bad state");if(!A.encoder)throw new Error("No decoding");return function(A){(function(A,e,t,I){var r,i,g,n,o,a,C,B,s,E,h,Q,c,u;if(e[0]=ge,t[0]=ge,I[0]=1,A._inStream&&(A._matchFinder._stream=A._inStream,function(A){A._bufferOffset=0,A._pos=0,A._streamPos=0,A._streamEndWasReached=0,Me(A),A._cyclicBufferPos=0,Ye(A,-1)}(A._matchFinder),A._needReleaseMFStream=1,A._inStream=null),!A._finished){if(A._finished=1,c=A.nowPos64,he(A.nowPos64,ge)){if(!be(A._matchFinder))return void et(A,ce(A.nowPos64));gt(A),Q=ce(A.nowPos64)&A._posStateMask,bt(A._rangeEncoder,A._isMatch,(A._state<<4)+Q,0),A._state=xe(A._state),g=ve(A._matchFinder,-A._additionalOffset),ct(Qt(A._literalEncoder,ce(A.nowPos64),A._previousByte),A._rangeEncoder,g),A._previousByte=g,A._additionalOffset-=1,A.nowPos64=Ce(A.nowPos64,ne)}if(be(A._matchFinder))for(;;){if(a=tt(A,ce(A.nowPos64)),s=A.backRes,Q=ce(A.nowPos64)&A._posStateMask,i=(A._state<<4)+Q,1==a&&-1==s)bt(A._rangeEncoder,A._isMatch,i,0),g=ve(A._matchFinder,-A._additionalOffset),u=Qt(A._literalEncoder,ce(A.nowPos64),A._previousByte),A._state<7?ct(u,A._rangeEncoder,g):(B=ve(A._matchFinder,-A._repDistances[0]-1-A._additionalOffset),ut(u,A._rangeEncoder,B,g)),A._previousByte=g,A._state=xe(A._state);else{if(bt(A._rangeEncoder,A._isMatch,i,1),s<4){if(bt(A._rangeEncoder,A._isRep,A._state,1),s?(bt(A._rangeEncoder,A._isRepG0,A._state,1),1==s?bt(A._rangeEncoder,A._isRepG1,A._state,0):(bt(A._rangeEncoder,A._isRepG1,A._state,1),bt(A._rangeEncoder,A._isRepG2,A._state,s-2))):(bt(A._rangeEncoder,A._isRepG0,A._state,0),bt(A._rangeEncoder,A._isRep0Long,i,1==a?0:1)),1==a?A._state=A._state<7?9:11:(Bt(A._repMatchLenEncoder,A._rangeEncoder,a-2,Q),A._state=A._state<7?8:11),n=A._repDistances[s],0!=s){for(var f=s;f>=1;--f)A._repDistances[f]=A._repDistances[f-1];A._repDistances[0]=n}}else{for(bt(A._rangeEncoder,A._isRep,A._state,0),A._state=A._state<7?7:10,Bt(A._lenEncoder,A._rangeEncoder,a-2,Q),h=ot(s-=4),C=Te(a),Ft(A._posSlotEncoder[C],A._rangeEncoder,h),h>=4&&(E=s-(r=(2|1&h)<<(o=(h>>1)-1)),h<14?Ut(A._posEncoders,r-h-1,A._rangeEncoder,o,E):(Mt(A._rangeEncoder,E>>4,o-4),St(A._posAlignEncoder,A._rangeEncoder,15&E),A._alignPriceCount+=1)),n=s,f=3;f>=1;--f)A._repDistances[f]=A._repDistances[f-1];A._repDistances[0]=n,A._matchPriceCount+=1}A._previousByte=ve(A._matchFinder,a-1-A._additionalOffset)}if(A._additionalOffset-=a,A.nowPos64=Ce(A.nowPos64,Qe(a)),!A._additionalOffset){if(A._matchPriceCount>=128&&At(A),A._alignPriceCount>=16&&$e(A),e[0]=A.nowPos64,t[0]=Yt(A._rangeEncoder),!be(A._matchFinder))return void et(A,ce(A.nowPos64));if(se(ye(A.nowPos64,c),[4096,0])>=0)return A._finished=0,void(I[0]=0)}}else et(A,ce(A.nowPos64))}})(A.encoder,A.encoder.processedInSize,A.encoder.processedOutSize,A.encoder.finished),A.inBytesProcessed=A.encoder.processedInSize[0],A.encoder.finished[0]&&(function(A){nt(A),A._rangeEncoder.Stream=null}(A.encoder),A.alive=0)}(A),A.alive}function We(A,e){for(;A.m_NumPosStates>=1,e=1,e<<=i-=1,A=0;A>24}return r}();function ze(A,e){var t,I,r,i;A._optimumEndIndex=e,r=A._optimum[e].PosPrev,I=A._optimum[e].BackPrev;do{A._optimum[e].Prev1IsChar&&(yt(A._optimum[r]),A._optimum[r].PosPrev=r-1,A._optimum[e].Prev2&&(A._optimum[r-1].Prev1IsChar=0,A._optimum[r-1].PosPrev=A._optimum[e].PosPrev2,A._optimum[r-1].BackPrev=A._optimum[e].BackPrev2)),i=r,t=I,I=A._optimum[i].BackPrev,r=A._optimum[i].PosPrev,A._optimum[i].BackPrev=t,A._optimum[i].PosPrev=e,e=i}while(e>0);return A.backRes=A._optimum[0].BackPrev,A._optimumCurrentIndex=A._optimum[0].PosPrev,A._optimumCurrentIndex}function $e(A){for(var e=0;e<16;++e)A._alignPrices[e]=mt(A._posAlignEncoder,e);A._alignPriceCount=0}function At(A){var e,t,I,r,i,g,n,o;for(r=4;r<128;++r)e=(2|1&(g=ot(r)))<<(I=(g>>1)-1),A.tempPrices[r]=kt(A._posEncoders,e-g-1,I,r-e);for(i=0;i<4;++i){for(t=A._posSlotEncoder[i],n=i<<6,g=0;g>1)-1-4<<6;for(o=128*i,r=0;r<4;++r)A._distancesPrices[o+r]=A._posSlotPrices[n+r];for(;r<128;++r)A._distancesPrices[o+r]=A._posSlotPrices[n+ot(r)]+A.tempPrices[r]}A._matchPriceCount=0}function et(A,e){nt(A),function(A,e){bt(A._rangeEncoder,A._isMatch,(A._state<<4)+e,1),bt(A._rangeEncoder,A._isRep,A._state,0),A._state=A._state<7?7:10,Bt(A._lenEncoder,A._rangeEncoder,0,e);var t=Te(2);Ft(A._posSlotEncoder[t],A._rangeEncoder,63),Mt(A._rangeEncoder,67108863,26),St(A._posAlignEncoder,A._rangeEncoder,15)}(A,e&A._posStateMask);for(var t=0;t<5;++t)Nt(A._rangeEncoder)}function tt(A,e){var t,I,r,i,g,n,o,a,C,B,s,E,h,Q,c,u,f,l,y,p,w,d,F,D,S,m,U,k,G,v,R,b,M,Y,N,L,H,J,q,K,T,x,_,V;if(A._optimumEndIndex!=A._optimumCurrentIndex)return h=A._optimum[A._optimumCurrentIndex].PosPrev-A._optimumCurrentIndex,A.backRes=A._optimum[A._optimumCurrentIndex].BackPrev,A._optimumCurrentIndex=A._optimum[A._optimumCurrentIndex].PosPrev,h;if(A._optimumCurrentIndex=A._optimumEndIndex=0,A._longestMatchWasFound?(E=A._longestMatchLength,A._longestMatchWasFound=0):E=gt(A),m=A._numDistancePairs,(D=be(A._matchFinder)+1)<2)return A.backRes=-1,1;for(D>273&&(D=273),q=0,C=0;C<4;++C)A.reps[C]=A._repDistances[C],A.repLens[C]=Re(A._matchFinder,-1,A.reps[C],273),A.repLens[C]>A.repLens[q]&&(q=C);if(A.repLens[q]>=A._numFastBytes)return A.backRes=q,it(A,(h=A.repLens[q])-1),h;if(E>=A._numFastBytes)return A.backRes=A._matchDistances[m-1]+4,it(A,E-1),E;if(o=ve(A._matchFinder,-1),f=ve(A._matchFinder,-A._repDistances[0]-1-1),E<2&&o!=f&&A.repLens[q]<2)return A.backRes=-1,1;if(A._optimum[0].State=A._state,M=e&A._posStateMask,A._optimum[1].Price=Rt[A._isMatch[(A._state<<4)+M]>>>2]+lt(Qt(A._literalEncoder,e,A._previousByte),A._state>=7,f,o),yt(A._optimum[1]),J=(l=Rt[2048-A._isMatch[(A._state<<4)+M]>>>2])+Rt[2048-A._isRep[A._state]>>>2],f==o&&(K=J+function(A,e,t){return Rt[A._isRepG0[e]>>>2]+Rt[A._isRep0Long[(e<<4)+t]>>>2]}(A,A._state,M),K=A.repLens[q]?E:A.repLens[q])<2)return A.backRes=A._optimum[1].BackPrev,1;A._optimum[1].PosPrev=0,A._optimum[0].Backs0=A.reps[0],A._optimum[0].Backs1=A.reps[1],A._optimum[0].Backs2=A.reps[2],A._optimum[0].Backs3=A.reps[3],B=s;do{A._optimum[B].Price=268435455,B-=1}while(B>=2);for(C=0;C<4;++C)if(!((H=A.repLens[C])<2)){N=J+rt(A,C,A._state,M);do{(i=N+Et(A._repMatchLenEncoder,H-2,M))<(v=A._optimum[H]).Price&&(v.Price=i,v.PosPrev=0,v.BackPrev=C,v.Prev1IsChar=0)}while((H-=1)>=2)}if(F=l+Rt[A._isRep[A._state]>>>2],(B=A.repLens[0]>=2?A.repLens[0]+1:2)<=E){for(U=0;B>A._matchDistances[U];)U+=2;for(;(i=F+It(A,a=A._matchDistances[U+1],B,M))<(v=A._optimum[B]).Price&&(v.Price=i,v.PosPrev=0,v.BackPrev=a+4,v.Prev1IsChar=0),B!=A._matchDistances[U]||(U+=2)!=m;B+=1);}for(t=0;;){if(++t==s)return ze(A,t);if(y=gt(A),m=A._numDistancePairs,y>=A._numFastBytes)return A._longestMatchLength=y,A._longestMatchWasFound=1,ze(A,t);if(e+=1,b=A._optimum[t].PosPrev,A._optimum[t].Prev1IsChar?(b-=1,A._optimum[t].Prev2?(x=A._optimum[A._optimum[t].PosPrev2].State,x=A._optimum[t].BackPrev2<4?x<7?8:11:x<7?7:10):x=A._optimum[b].State,x=xe(x)):x=A._optimum[b].State,b==t-1?x=A._optimum[t].BackPrev?xe(x):x<7?9:11:(A._optimum[t].Prev1IsChar&&A._optimum[t].Prev2?(b=A._optimum[t].PosPrev2,R=A._optimum[t].BackPrev2,x=x<7?8:11):x=(R=A._optimum[t].BackPrev)<4?x<7?8:11:x<7?7:10,G=A._optimum[b],R<4?R?1==R?(A.reps[0]=G.Backs1,A.reps[1]=G.Backs0,A.reps[2]=G.Backs2,A.reps[3]=G.Backs3):2==R?(A.reps[0]=G.Backs2,A.reps[1]=G.Backs0,A.reps[2]=G.Backs1,A.reps[3]=G.Backs3):(A.reps[0]=G.Backs3,A.reps[1]=G.Backs0,A.reps[2]=G.Backs1,A.reps[3]=G.Backs2):(A.reps[0]=G.Backs0,A.reps[1]=G.Backs1,A.reps[2]=G.Backs2,A.reps[3]=G.Backs3):(A.reps[0]=R-4,A.reps[1]=G.Backs0,A.reps[2]=G.Backs1,A.reps[3]=G.Backs2)),A._optimum[t].State=x,A._optimum[t].Backs0=A.reps[0],A._optimum[t].Backs1=A.reps[1],A._optimum[t].Backs2=A.reps[2],A._optimum[t].Backs3=A.reps[3],n=A._optimum[t].Price,o=ve(A._matchFinder,-1),f=ve(A._matchFinder,-A.reps[0]-1-1),M=e&A._posStateMask,p=0,(I=n+Rt[A._isMatch[(x<<4)+M]>>>2]+lt(Qt(A._literalEncoder,e,ve(A._matchFinder,-2)),x>=7,f,o))<(w=A._optimum[t+1]).Price&&(w.Price=I,w.PosPrev=t,w.BackPrev=-1,w.Prev1IsChar=0,p=1),J=(l=n+Rt[2048-A._isMatch[(x<<4)+M]>>>2])+Rt[2048-A._isRep[x]>>>2],f!=o||w.PosPrev>>2]+Rt[A._isRep0Long[(x<<4)+M]>>>2]))<=w.Price&&(w.Price=K,w.PosPrev=t,w.BackPrev=0,w.Prev1IsChar=0,p=1),!((D=S=4095-t<(S=be(A._matchFinder)+1)?4095-t:S)<2)){if(D>A._numFastBytes&&(D=A._numFastBytes),!p&&f!=o&&(V=Math.min(S-1,A._numFastBytes),(c=Re(A._matchFinder,0,A.reps[0],V))>=2)){for(_=xe(x),Y=e+1&A._posStateMask,d=I+Rt[2048-A._isMatch[(_<<4)+Y]>>>2]+Rt[2048-A._isRep[_]>>>2],k=t+1+c;s=2);if(Q=u,L||(T=Q+1),Q=2)){for(_=x<7?8:11,Y=e+Q&A._posStateMask,r=J+(Et(A._repMatchLenEncoder,Q-2,M)+rt(A,L,x,M))+Rt[A._isMatch[(_<<4)+Y]>>>2]+lt(Qt(A._literalEncoder,e+Q,ve(A._matchFinder,Q-1-1)),1,ve(A._matchFinder,Q-1-(A.reps[L]+1)),ve(A._matchFinder,Q-1)),_=xe(_),Y=e+Q+1&A._posStateMask,d=r+Rt[2048-A._isMatch[(_<<4)+Y]>>>2]+Rt[2048-A._isRep[_]>>>2],k=Q+1+c;sD){for(y=D,m=0;y>A._matchDistances[m];m+=2);A._matchDistances[m]=y,m+=2}if(y>=T){for(F=l+Rt[A._isRep[x]>>>2];sA._matchDistances[U];)U+=2;for(Q=T;;Q+=1)if((i=F+It(A,g=A._matchDistances[U+1],Q,M))<(v=A._optimum[t+Q]).Price&&(v.Price=i,v.PosPrev=t,v.BackPrev=g+4,v.Prev1IsChar=0),Q==A._matchDistances[U]){if(Q=2)){for(_=x<7?7:10,Y=e+Q&A._posStateMask,r=i+Rt[A._isMatch[(_<<4)+Y]>>>2]+lt(Qt(A._literalEncoder,e+Q,ve(A._matchFinder,Q-1-1)),1,ve(A._matchFinder,Q-(g+1)-1),ve(A._matchFinder,Q-1)),_=xe(_),Y=e+Q+1&A._posStateMask,d=r+Rt[2048-A._isMatch[(_<<4)+Y]>>>2]+Rt[2048-A._isRep[_]>>>2],k=Q+1+c;s>6]+12:A<134217728?Xe[A>>16]+32:Xe[A>>26]+52}(e)]+A._alignPrices[15&e])+Et(A._lenEncoder,t-2,I)}function rt(A,e,t,I){var r;return e?(r=Rt[2048-A._isRepG0[t]>>>2],1==e?r+=Rt[A._isRepG1[t]>>>2]:(r+=Rt[2048-A._isRepG1[t]>>>2],r+=Lt(A._isRepG2[t],e-2))):(r=Rt[A._isRepG0[t]>>>2],r+=Rt[2048-A._isRep0Long[(t<<4)+I]>>>2]),r}function it(A,e){e>0&&(function(A,e){var t,I,r,i,g,n,o,a,C,B,s,E,h,Q,c,u,f;do{if(A._pos+A._matchMaxLen<=A._streamPos)E=A._matchMaxLen;else if((E=A._streamPos-A._pos)A._cyclicBufferSize?A._pos-A._cyclicBufferSize:0,I=A._bufferOffset+A._pos,A.HASH_ARRAY?(n=1023&(f=Ne[255&A._bufferBase[I]]^255&A._bufferBase[I+1]),A._hash[n]=A._pos,o=65535&(f^=(255&A._bufferBase[I+2])<<8),A._hash[1024+o]=A._pos,a=(f^Ne[255&A._bufferBase[I+3]]<<5)&A._hashMask):a=255&A._bufferBase[I]^(255&A._bufferBase[I+1])<<8,r=A._hash[A.kFixHashSize+a],A._hash[A.kFixHashSize+a]=A._pos,c=1+(A._cyclicBufferPos<<1),u=A._cyclicBufferPos<<1,B=s=A.kNumHashDirectBytes,t=A._cutValue;;){if(r<=h||0==t){t-=1,A._son[c]=A._son[u]=0;break}if(i=((g=A._pos-r)<=A._cyclicBufferPos?A._cyclicBufferPos-g:A._cyclicBufferPos-g+A._cyclicBufferSize)<<1,Q=A._bufferOffset+r,C=BA._cyclicBufferSize?A._pos-A._cyclicBufferSize:0,I=A._bufferOffset+A._pos,u=1,a=0,C=0,A.HASH_ARRAY?(a=1023&(w=Ne[255&A._bufferBase[I]]^255&A._bufferBase[I+1]),C=65535&(w^=(255&A._bufferBase[I+2])<<8),B=(w^Ne[255&A._bufferBase[I+3]]<<5)&A._hashMask):B=255&A._bufferBase[I]^(255&A._bufferBase[I+1])<<8,r=A._hash[A.kFixHashSize+B]||0,A.HASH_ARRAY&&(i=A._hash[a]||0,g=A._hash[1024+C]||0,A._hash[a]=A._pos,A._hash[1024+C]=A._pos,i>c&&A._bufferBase[A._bufferOffset+i]==A._bufferBase[I]&&(e[f++]=u=2,e[f++]=A._pos-i-1),g>c&&A._bufferBase[A._bufferOffset+g]==A._bufferBase[I]&&(g==i&&(f-=2),e[f++]=u=3,e[f++]=A._pos-g-1,i=g),0!=f&&i==r&&(f-=2,u=1)),A._hash[A.kFixHashSize+B]=A._pos,y=1+(A._cyclicBufferPos<<1),p=A._cyclicBufferPos<<1,E=h=A.kNumHashDirectBytes,0!=A.kNumHashDirectBytes&&r>c&&A._bufferBase[A._bufferOffset+r+A.kNumHashDirectBytes]!=A._bufferBase[I+A.kNumHashDirectBytes]&&(e[f++]=u=A.kNumHashDirectBytes,e[f++]=A._pos-r-1),t=A._cutValue;;){if(r<=c||0==t){t-=1,A._son[y]=A._son[p]=0;break}if(n=((o=A._pos-r)<=A._cyclicBufferPos?A._cyclicBufferPos-o:A._cyclicBufferPos-o+A._cyclicBufferSize)<<1,l=A._bufferOffset+r,s=E0&&(e=A._matchDistances[A._numDistancePairs-2])==A._numFastBytes&&(e+=Re(A._matchFinder,e-1,A._matchDistances[A._numDistancePairs-1],273-e)),A._additionalOffset+=1,e}function nt(A){A._matchFinder&&A._needReleaseMFStream&&(A._matchFinder._stream=null,A._needReleaseMFStream=0)}function ot(A){return A<2048?Xe[A]:A<2097152?Xe[A>>10]+20:Xe[A>>20]+40}function at(A,e){vt(A._choice);for(var t=0;t>>2],n=(g=Rt[2048-A._choice[0]>>>2])+Rt[A._choice[1]>>>2],o=g+Rt[2048-A._choice[1]>>>2],a=0,a=0;a<8;++a){if(a>=t)return;I[r+a]=i+Dt(A._lowCoder[e],a)}for(;a<16;++a){if(a>=t)return;I[r+a]=n+Dt(A._midCoder[e],a-8)}for(;a>>8-A.m_NumPrevBits)]}function ct(A,e,t){var I,r,i=1;for(r=7;r>=0;--r)I=t>>r&1,bt(e,A.m_Encoders,i,I),i=i<<1|I}function ut(A,e,t,I){var r,i,g,n,o=1,a=1;for(i=7;i>=0;--i)r=I>>i&1,n=a,o&&(n+=1+(g=t>>i&1)<<8,o=g==r),bt(e,A.m_Encoders,n,r),a=a<<1|r}function ft(A){return A.m_Encoders=ae(768),A}function lt(A,e,t,I){var r,i,g=1,n=7,o=0;if(e)for(;n>=0;--n)if(i=t>>n&1,r=I>>n&1,o+=Lt(A.m_Encoders[(1+i<<8)+g],r),g=g<<1|r,i!=r){--n;break}for(;n>=0;--n)r=I>>n&1,o+=Lt(A.m_Encoders[g],r),g=g<<1|r;return o}function yt(A){A.BackPrev=-1,A.Prev1IsChar=0}function pt(A,e){return A.NumBitLevels=e,A.Models=ae(1<>>(r-=1)&1,bt(e,A.Models,i,I),i=i<<1|I}function Dt(A,e){var t,I,r=1,i=0;for(I=A.NumBitLevels;0!=I;)t=e>>>(I-=1)&1,i+=Lt(A.Models[r],t),r=(r<<1)+t;return i}function St(A,e,t){var I,r,i=1;for(r=0;r>=1}function mt(A,e){var t,I,r=1,i=0;for(I=A.NumBitLevels;0!=I;I-=1)t=1&e,e>>>=1,i+=Lt(A.Models[r],t),r=r<<1|t;return i}function Ut(A,e,t,I,r){var i,g,n=1;for(g=0;g>=1}function kt(A,e,t,I){var r,i,g=1,n=0;for(i=t;0!=i;i-=1)r=1&I,I>>>=1,n+=Rt[(2047&(A[e+g]-r^-r))>>>2],g=g<<1|r;return n}function Gt(A,e,t){var I,r=e[t];return I=(A.Range>>>11)*r,(-2147483648^A.Code)<(-2147483648^I)?(A.Range=I,e[t]=r+(2048-r>>>5)<<16>>16,-16777216&A.Range||(A.Code=A.Code<<8|we(A.Stream),A.Range<<=8),0):(A.Range-=I,A.Code-=I,e[t]=r-(r>>>5)<<16>>16,-16777216&A.Range||(A.Code=A.Code<<8|we(A.Stream),A.Range<<=8),1)}function vt(A){for(var e=A.length-1;e>=0;--e)A[e]=1024}var Rt=function(){var A,e,t,I,r=[];for(e=8;e>=0;--e)for(I=1,A=1,A<<=9-e,t=I<<=9-e-1;t>>9-e-1);return r}();function bt(A,e,t,I){var r,i=e[t];r=(A.Range>>>11)*i,I?(A.Low=Ce(A.Low,Be(Qe(r),[4294967295,0])),A.Range-=r,e[t]=i-(i>>>5)<<16>>16):(A.Range=r,e[t]=i+(2048-i>>>5)<<16>>16),-16777216&A.Range||(A.Range<<=8,Nt(A))}function Mt(A,e,t){for(var I=t-1;I>=0;I-=1)A.Range>>>=1,1==(e>>>I&1)&&(A.Low=Ce(A.Low,Qe(A.Range))),-16777216&A.Range||(A.Range<<=8,Nt(A))}function Yt(A){return Ce(Ce(Qe(A._cacheSize),A._position),[4,0])}function Nt(A){var e,t,I,r,i=ce((I=32,r=le(t=A.Low,I&=63),t[1]<0&&(r=Ce(r,fe([2,0],31))),r));if(0!=i||se(A.Low,[4278190080,0])<0){A._position=Ce(A._position,Qe(A._cacheSize)),e=A._cache;do{Se(A.Stream,e+i),e=255}while(0!=(A._cacheSize-=1));A._cache=ce(A.Low)>>>24}A._cacheSize+=1,A.Low=fe(Be(A.Low,[16777215,0]),8)}function Lt(A,e){return Rt[(2047&(A-e^-e))>>>2]}function Ht(A){for(var e,t,I,r=0,i=0,g=A.length,n=[],o=[];r=g)return A;if(128!=(192&(t=255&A[++r])))return A;o[i]=(31&e)<<6|63&t}else{if(224!=(240&e))return A;if(r+2>=g)return A;if(128!=(192&(t=255&A[++r])))return A;if(128!=(192&(I=255&A[++r])))return A;o[i]=(15&e)<<12|(63&t)<<6|63&I}else{if(!e)return A;o[i]=e}16383==i&&(n.push(String.fromCharCode.apply(String,o)),i=-1)}return i>0&&(o.length=i,n.push(String.fromCharCode.apply(String,o))),n.join("")}function Jt(A){var e,t,I,r=[],i=0,g=A.length;if("object"==typeof A)return A;for(function(A,e,t,I,r){var i;for(i=0;i=1&&e<=127?++i:i+=!e||e>=128&&e<=2047?2:3;for(t=[],i=0,I=0;I=1&&e<=127?t[i++]=e<<24>>24:!e||e>=128&&e<=2047?(t[i++]=(192|e>>6&31)<<24>>24,t[i++]=(128|63&e)<<24>>24):(t[i++]=(224|e>>12&15)<<24>>24,t[i++]=(128|e>>6&63)<<24>>24,t[i++]=(128|63&e)<<24>>24);return t}function qt(A){return A[1]+A[0]}function Kt(A,e,t,I){var r,i,g={},n=void 0===t&&void 0===I;if("function"!=typeof t&&(i=t,t=I=0),I=I||function(A){if(void 0!==i)return oe(A,i)},t=t||function(A,e){if(void 0!==i)return postMessage({action:$A,cbn:i,result:A,error:e})},n){for(g.c=ke({},Jt(A),_t(e));Ve(g.c.chunker););return De(g.c.output)}try{g.c=ke({},Jt(A),_t(e)),I(0)}catch(A){return t(null,A)}te((function A(){try{for(var e,i=(new Date).getTime();Ve(g.c.chunker);)if(r=qt(g.c.chunker.inBytesProcessed)/qt(g.c.length_0),(new Date).getTime()-i>200)return I(r),te(A,0),0;I(1),e=De(g.c.output),te(t.bind(null,e),0)}catch(A){t(null,A)}}),0)}function Tt(A,e,t){var I,r,i,g,n={},o=void 0===e&&void 0===t;if("function"!=typeof e&&(r=e,e=t=0),t=t||function(A){if(void 0!==r)return oe(i?A:-1,r)},e=e||function(A,e){if(void 0!==r)return postMessage({action:Ae,cbn:r,result:A,error:e})},o){for(n.d=Ge({},A);_e(n.d.chunker););return Ht(De(n.d.output))}try{n.d=Ge({},A),g=qt(n.d.length_0),i=g>-1,t(0)}catch(A){return e(null,A)}te((function A(){try{for(var r,o=0,a=(new Date).getTime();_e(n.d.chunker);)if(++o%1e3==0&&(new Date).getTime()-a>200)return i&&(I=qt(n.d.chunker.decoder.nowPos64)/g,t(I)),te(A,0),0;t(1),r=Ht(De(n.d.output)),te(e.bind(null,r),0)}catch(A){e(null,A)}}),0)}var xt,_t=(xt=[{s:16,f:64,m:0},{s:20,f:64,m:0},{s:19,f:64,m:1},{s:20,f:64,m:1},{s:21,f:128,m:1},{s:22,f:128,m:1},{s:23,f:128,m:1},{s:24,f:255,m:1},{s:25,f:255,m:1}],function(A){return xt[A-1]||xt[6]});const Vt=function(A){o(n,A);var e,t,r,i=(t=n,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,e=B(t);if(r){var I=B(this).constructor;A=Reflect.construct(e,arguments,I)}else A=e.apply(this,arguments);return C(this,A)});function n(){var A;return I(this,n),(A=i.call(this)).name="LZMA Compress",A.module="Compression",A.description="Compresses data using the Lempel–Ziv–Markov chain algorithm. Compression mode determines the speed and effectiveness of the compression: 1 is fastest and less effective, 9 is slowest and most effective",A.infoURL="https://wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Markov_chain_algorithm",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Compression Mode",type:"option",value:["1","2","3","4","5","6","7","8","9"],defaultIndex:6}],A}return g(n,[{key:"run",value:(e=E(Q().mark((function A(e,t){var I;return Q().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return I=Number(t[0]),A.abrupt("return",new Promise((function(A,t){Kt(new Uint8Array(e),I,(function(e,I){I&&t(new p(`Failed to compress input: ${I.message}`)),A(new Int8Array(e).buffer)}),(function(A){R()&&self.sendStatusMessage(`Compressing input: ${(100*A).toFixed(2)}%`)}))})));case 2:case"end":return A.stop()}}),A)}))),function(A,t){return e.apply(this,arguments)})}]),n}(bA);const Wt=function(A){o(n,A);var e,t,r,i=(t=n,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,e=B(t);if(r){var I=B(this).constructor;A=Reflect.construct(e,arguments,I)}else A=e.apply(this,arguments);return C(this,A)});function n(){var A;return I(this,n),(A=i.call(this)).name="LZMA Decompress",A.module="Compression",A.description="Decompresses data using the Lempel-Ziv-Markov chain Algorithm.",A.infoURL="https://wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Markov_chain_algorithm",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A}return g(n,[{key:"run",value:(e=E(Q().mark((function A(e,t){return Q().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.abrupt("return",new Promise((function(A,t){Tt(new Uint8Array(e),(function(e,I){I&&t(new p(`Failed to decompress input: ${I.message}`)),A("string"==typeof e?b.strToArrayBuffer(e):new Int8Array(e).buffer)}),(function(A){R()&&self.sendStatusMessage(`Decompressing input: ${(100*A).toFixed(2)}%`)}))})));case 1:case"end":return A.stop()}}),A)}))),function(A,t){return e.apply(this,arguments)})}]),n}(bA);var Pt=__webpack_require__(26961),Ot=__webpack_require__.n(Pt),Zt=["default","UTF16","Base64"],jt={default:Ot().compress,UTF16:Ot().compressToUTF16,Base64:Ot().compressToBase64},Xt={default:Ot().decompress,UTF16:Ot().decompressFromUTF16,Base64:Ot().decompressFromBase64};var zt=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){var A;return I(this,i),(A=r.call(this)).name="LZString Compress",A.module="Compression",A.description="Compress the input with lz-string.",A.infoURL="https://pieroxy.net/blog/pages/lz-string/index.html",A.inputType="string",A.outputType="string",A.args=[{name:"Compression Format",type:"option",defaultIndex:0,value:Zt}],A}return g(i,[{key:"run",value:function(A,e){var t=jt[e[0]];if(t)return t(A);throw new p("Unable to find compression function")}}]),i}(bA);const $t=zt;var AI=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){var A;return I(this,i),(A=r.call(this)).name="LZString Decompress",A.module="Compression",A.description="Decompresses data that was compressed with lz-string.",A.infoURL="https://pieroxy.net/blog/pages/lz-string/index.html",A.inputType="string",A.outputType="string",A.args=[{name:"Compression Format",type:"option",defaultIndex:0,value:Zt}],A}return g(i,[{key:"run",value:function(A,e){var t=Xt[e[0]];if(t)return t(A);throw new p("Unable to find decompression function")}}]),i}(bA);const eI=AI;var tI=__webpack_require__(74103);var II=__webpack_require__.n(tI)().Zlib,rI={"Fixed Huffman Coding":II.RawDeflate.CompressionType.FIXED,"Dynamic Huffman Coding":II.RawDeflate.CompressionType.DYNAMIC,"None (Store)":II.RawDeflate.CompressionType.NONE};const iI=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){var A;return I(this,i),(A=r.call(this)).name="Raw Deflate",A.module="Compression",A.description="Compresses data using the deflate algorithm with no headers.",A.infoURL="https://wikipedia.org/wiki/DEFLATE",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Compression type",type:"option",value:_A}],A}return g(i,[{key:"run",value:function(A,e){var t=new II.RawDeflate(new Uint8Array(A),{compressionType:rI[e[0]]});return new Uint8Array(t.compress()).buffer}}]),i}(bA);var gI=__webpack_require__(39489);var nI=__webpack_require__.n(gI)().Zlib,oI={Adaptive:nI.RawInflate.BufferType.ADAPTIVE,Block:nI.RawInflate.BufferType.BLOCK};const aI=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){var A;return I(this,i),(A=r.call(this)).name="Raw Inflate",A.module="Compression",A.description="Decompresses data which has been compressed using the deflate algorithm with no headers.",A.infoURL="https://wikipedia.org/wiki/DEFLATE",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Start index",type:"number",value:0},{name:"Initial output buffer size",type:"number",value:0},{name:"Buffer expansion type",type:"option",value:VA},{name:"Resize buffer after decompression",type:"boolean",value:!1},{name:"Verify result",type:"boolean",value:!1}],A.checks=[{entropyRange:[7.5,8],args:[0,0,VA,!1,!1]}],A}return g(i,[{key:"run",value:function(A,e){var t=new nI.RawInflate(new Uint8Array(A),{index:e[0],bufferSize:e[1],bufferType:oI[e[2]],resize:e[3],verify:e[4]});return new Uint8Array(t.decompress()).buffer}}]),i}(bA);var CI=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){var A;return I(this,i),(A=r.call(this)).name="Tar",A.module="Compression",A.description="Packs the input into a tarball.

No support for multiple files at this time.",A.infoURL="https://wikipedia.org/wiki/Tar_(computing)",A.inputType="ArrayBuffer",A.outputType="File",A.args=[{name:"Filename",type:"string",value:"file.txt"}],A}return g(i,[{key:"run",value:function(A,e){A=new Uint8Array(A);var t=function(){this.bytes=new Array(512),this.position=0};t.prototype.addEmptyBlock=function(){var A=new Array(512);A.fill(0),this.bytes=this.bytes.concat(A)},t.prototype.writeBytes=function(A){var e=this;this.position+A.length>this.bytes.length&&this.addEmptyBlock(),Array.prototype.forEach.call(A,(function(A,t){void 0!==A.charCodeAt&&(A=A.charCodeAt()),e.bytes[e.position]=A,e.position+=1}))},t.prototype.writeEndBlocks=function(){for(var A=0;A<2;A++)this.addEmptyBlock()};var I=A.length.toString(8).padStart(11,"0"),r=Math.floor(Date.now()/1e3).toString(8).padStart(11,"0"),i={fileName:b.padBytesRight(e[0],100),fileMode:b.padBytesRight("0000664",8),ownerUID:b.padBytesRight("0",8),ownerGID:b.padBytesRight("0",8),size:b.padBytesRight(I,12),lastModTime:b.padBytesRight(r,12),checksum:" ",type:"0",linkedFileName:b.padBytesRight("",100),USTARFormat:b.padBytesRight("ustar",6),version:"00",ownerUserName:b.padBytesRight("",32),ownerGroupName:b.padBytesRight("",32),deviceMajor:b.padBytesRight("",8),deviceMinor:b.padBytesRight("",8),fileNamePrefix:b.padBytesRight("",155)},g=0;for(var n in i){var o=i[n];Array.prototype.forEach.call(o,(function(A){void 0!==A.charCodeAt?g+=A.charCodeAt():g+=A}))}g=b.padBytesRight(g.toString(8).padStart(7,"0"),8),i.checksum=g;var a=new t;return a.writeBytes(i.fileName),a.writeBytes(i.fileMode),a.writeBytes(i.ownerUID),a.writeBytes(i.ownerGID),a.writeBytes(i.size),a.writeBytes(i.lastModTime),a.writeBytes(i.checksum),a.writeBytes(i.type),a.writeBytes(i.linkedFileName),a.writeBytes(i.USTARFormat),a.writeBytes(i.version),a.writeBytes(i.ownerUserName),a.writeBytes(i.ownerGroupName),a.writeBytes(i.deviceMajor),a.writeBytes(i.deviceMinor),a.writeBytes(i.fileNamePrefix),a.writeBytes(b.padBytesRight("",12)),a.writeBytes(A),a.writeEndBlocks(),new File([new Uint8Array(a.bytes)],e[0])}}]),i}(bA);const BI=CI;const sI=function(A){o(n,A);var e,t,r,i=(t=n,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,e=B(t);if(r){var I=B(this).constructor;A=Reflect.construct(e,arguments,I)}else A=e.apply(this,arguments);return C(this,A)});function n(){var A;return I(this,n),(A=i.call(this)).name="Untar",A.module="Compression",A.description="Unpacks a tarball and displays it per file.",A.infoURL="https://wikipedia.org/wiki/Tar_(computing)",A.inputType="ArrayBuffer",A.outputType="List",A.presentType="html",A.args=[],A.checks=[{pattern:"^.{257}\\x75\\x73\\x74\\x61\\x72",flags:"",args:[]}],A}return g(n,[{key:"run",value:function(A,e){A=new Uint8Array(A);for(var t=new eA(A),I=[];t.hasMore();){var r=t.position+512,i={fileName:t.readString(100),fileMode:t.readString(8),ownerUID:t.readString(8),ownerGID:t.readString(8),size:parseInt(t.readString(12),8),lastModTime:new Date(1e3*parseInt(t.readString(12),8)),checksum:t.readString(8),type:t.readString(1),linkedFileName:t.readString(100),USTARFormat:t.readString(6).indexOf("ustar")>=0};if(i.USTARFormat&&(i.version=t.readString(2),i.ownerUserName=t.readString(32),i.ownerGroupName=t.readString(32),i.deviceMajor=t.readString(8),i.deviceMinor=t.readString(8),i.filenamePrefix=t.readString(155)),t.position=r,"0"===i.type){var g=t.position+i.size;i.size%512!=0&&(g+=512-i.size%512),i.bytes=t.getBytes(i.size),I.push(new File([new Uint8Array(i.bytes)],i.fileName)),t.position=g}else"5"===i.type&&I.push(new File([new Uint8Array(i.bytes)],i.fileName))}return I}},{key:"present",value:(e=E(Q().mark((function A(e){return Q().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,b.displayFilesAsHTML(e);case 2:return A.abrupt("return",A.sent);case 3:case"end":return A.stop()}}),A)}))),function(A){return e.apply(this,arguments)})}]),n}(bA);var EI=__webpack_require__(16893);var hI=__webpack_require__.n(EI)().Zlib;const QI=function(A){o(n,A);var e,t,r,i=(t=n,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,e=B(t);if(r){var I=B(this).constructor;A=Reflect.construct(e,arguments,I)}else A=e.apply(this,arguments);return C(this,A)});function n(){var A;return I(this,n),(A=i.call(this)).name="Unzip",A.module="Compression",A.description="Decompresses data using the PKZIP algorithm and displays it per file, with support for passwords.",A.infoURL="https://wikipedia.org/wiki/Zip_(file_format)",A.inputType="ArrayBuffer",A.outputType="List",A.presentType="html",A.args=[{name:"Password",type:"binaryString",value:""},{name:"Verify result",type:"boolean",value:!1}],A.checks=[{pattern:"^\\x50\\x4b(?:\\x03|\\x05|\\x07)(?:\\x04|\\x06|\\x08)",flags:"",args:["",!1]}],A}return g(n,[{key:"run",value:function(A,e){var t={password:b.strToByteArray(e[0]),verify:e[1]},I=new hI.Unzip(new Uint8Array(A),t);return I.getFilenames().map((function(A){var e=I.decompress(A);return new File([e],A)}))}},{key:"present",value:(e=E(Q().mark((function A(e){return Q().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,b.displayFilesAsHTML(e);case 2:return A.abrupt("return",A.sent);case 3:case"end":return A.stop()}}),A)}))),function(A){return e.apply(this,arguments)})}]),n}(bA);var cI=__webpack_require__(8832);var uI=__webpack_require__.n(cI)().Zlib,fI={Deflate:uI.Zip.CompressionMethod.DEFLATE,"None (Store)":uI.Zip.CompressionMethod.STORE},lI={MSDOS:uI.Zip.OperatingSystem.MSDOS,Unix:uI.Zip.OperatingSystem.UNIX,Macintosh:uI.Zip.OperatingSystem.MACINTOSH};const yI=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){var A;return I(this,i),(A=r.call(this)).name="Zip",A.module="Compression",A.description="Compresses data using the PKZIP algorithm with the given filename.

No support for multiple files at this time.",A.infoURL="https://wikipedia.org/wiki/Zip_(file_format)",A.inputType="ArrayBuffer",A.outputType="File",A.args=[{name:"Filename",type:"string",value:"file.txt"},{name:"Comment",type:"string",value:""},{name:"Password",type:"binaryString",value:""},{name:"Compression method",type:"option",value:["Deflate","None (Store)"]},{name:"Operating system",type:"option",value:["MSDOS","Unix","Macintosh"]},{name:"Compression type",type:"option",value:_A}],A}return g(i,[{key:"run",value:function(A,e){var t=e[0],I=b.strToByteArray(e[2]),r={filename:b.strToByteArray(t),comment:b.strToByteArray(e[1]),compressionMethod:fI[e[3]],os:lI[e[4]],deflateOption:{compressionType:WA[e[5]]}},i=new uI.Zip;return I.length&&i.setPassword(I),i.addFile(new Uint8Array(A),r),new File([i.compress()],t)}}]),i}(bA);var pI=TA().Zlib;const wI=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){var A;return I(this,i),(A=r.call(this)).name="Zlib Deflate",A.module="Compression",A.description="Compresses data using the deflate algorithm adding zlib headers.",A.infoURL="https://wikipedia.org/wiki/Zlib",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Compression type",type:"option",value:_A}],A}return g(i,[{key:"run",value:function(A,e){var t=new pI.Deflate(new Uint8Array(A),{compressionType:WA[e[0]]});return new Uint8Array(t.compress()).buffer}}]),i}(bA);var dI=TA().Zlib,FI={Adaptive:dI.Inflate.BufferType.ADAPTIVE,Block:dI.Inflate.BufferType.BLOCK};const DI=function(A){o(i,A);var e,t,r=(e=i,t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,I=B(e);if(t){var r=B(this).constructor;A=Reflect.construct(I,arguments,r)}else A=I.apply(this,arguments);return C(this,A)});function i(){var A;return I(this,i),(A=r.call(this)).name="Zlib Inflate",A.module="Compression",A.description="Decompresses data which has been compressed using the deflate algorithm with zlib headers.",A.infoURL="https://wikipedia.org/wiki/Zlib",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Start index",type:"number",value:0},{name:"Initial output buffer size",type:"number",value:0},{name:"Buffer expansion type",type:"option",value:VA},{name:"Resize buffer after decompression",type:"boolean",value:!1},{name:"Verify result",type:"boolean",value:!1}],A.checks=[{pattern:"^\\x78(\\x01|\\x9c|\\xda|\\x5e)",flags:"",args:[0,0,"Adaptive",!1,!1]}],A}return g(i,[{key:"run",value:function(A,e){var t=new dI.Inflate(new Uint8Array(A),{index:e[0],bufferSize:e[1],bufferType:FI[e[2]],resize:e[3],verify:e[4]});return new Uint8Array(t.decompress()).buffer}}]),i}(bA);("undefined"==typeof self?{}:self.OpModules||{}).Compression={"Bzip2 Compress":NA,"Bzip2 Decompress":LA,Gunzip:qA,Gzip:ZA,"LZ4 Compress":XA,"LZ4 Decompress":zA,"LZMA Compress":Vt,"LZMA Decompress":Wt,"LZString Compress":$t,"LZString Decompress":eI,"Raw Deflate":iI,"Raw Inflate":aI,Tar:BI,Untar:sI,Unzip:QI,Zip:yI,"Zlib Deflate":wI,"Zlib Inflate":DI}})()})();