UNPKG

@gamechanger-finance/gc

Version:

Official GameChanger Wallet library and CLI for integrating with Cardano dapps and solve other tasks (https://gamechanger.finance/)

1 lines 298 kB
this.gc=function(){var e="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t=[],n=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a=!1;function i(){a=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0;r<64;++r)t[r]=e[r],n[e.charCodeAt(r)]=r;n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63}function o(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[63&e]}function A(e,t,n){for(var r,a=[],i=t;i<n;i+=3)r=(e[i]<<16)+(e[i+1]<<8)+e[i+2],a.push(o(r));return a.join("")}function s(e){var n;a||i();for(var r=e.length,o=r%3,s="",l=[],c=16383,d=0,u=r-o;d<u;d+=c)l.push(A(e,d,d+c>u?u:d+c));return 1===o?(n=e[r-1],s+=t[n>>2],s+=t[n<<4&63],s+="=="):2===o&&(n=(e[r-2]<<8)+e[r-1],s+=t[n>>10],s+=t[n>>4&63],s+=t[n<<2&63],s+="="),l.push(s),l.join("")}function l(e,t,n,r,a){var i,o,A=8*a-r-1,s=(1<<A)-1,l=s>>1,c=-7,d=n?a-1:0,u=n?-1:1,p=e[t+d];for(d+=u,i=p&(1<<-c)-1,p>>=-c,c+=A;c>0;i=256*i+e[t+d],d+=u,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=u,c-=8);if(0===i)i=1-l;else{if(i===s)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),i-=l}return(p?-1:1)*o*Math.pow(2,i-r)}function c(e,t,n,r,a,i){var o,A,s,l=8*i-a-1,c=(1<<l)-1,d=c>>1,u=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(A=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+d>=1?u/s:u*Math.pow(2,1-d))*s>=2&&(o++,s/=2),o+d>=c?(A=0,o=c):o+d>=1?(A=(t*s-1)*Math.pow(2,a),o+=d):(A=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+p]=255&A,p+=h,A/=256,a-=8);for(o=o<<a|A,l+=a;l>0;e[n+p]=255&o,p+=h,o/=256,l-=8);e[n+p-h]|=128*g}var d={}.toString,u=Array.isArray||function(e){return"[object Array]"==d.call(e)};function p(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(e,t){if(p()<t)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=g.prototype:(null===e&&(e=new g(t)),e.length=t),e}function g(e,t,n){if(!(g.TYPED_ARRAY_SUPPORT||this instanceof g))return new g(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return _(this,e)}return f(this,e,t,n)}function f(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);g.TYPED_ARRAY_SUPPORT?(e=t).__proto__=g.prototype:e=b(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!g.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|v(t,n);e=h(e,r);var a=e.write(t,n);a!==r&&(e=e.slice(0,a));return e}(e,t,n):function(e,t){if(y(t)){var n=0|w(t.length);return 0===(e=h(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?h(e,0):b(e,t);if("Buffer"===t.type&&u(t.data))return b(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function m(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function _(e,t){if(m(t),e=h(e,t<0?0:0|w(t)),!g.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function b(e,t){var n=t.length<0?0:0|w(t.length);e=h(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function w(e){if(e>=p())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p().toString(16)+" bytes");return 0|e}function y(e){return!(null==e||!e._isBuffer)}function v(e,t){if(y(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(r)return J(e).length;t=(""+t).toLowerCase(),r=!0}}function x(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return U(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return N(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function k(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function E(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=g.from(t,r)),y(t))return 0===t.length?-1:I(e,t,n,r,a);if("number"==typeof t)return t&=255,g.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):I(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function I(e,t,n,r,a){var i,o=1,A=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,A/=2,s/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var c=-1;for(i=n;i<A;i++)if(l(e,i)===l(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===s)return c*o}else-1!==c&&(i-=i-c),c=-1}else for(n+s>A&&(n=A-s),i=n;i>=0;i--){for(var d=!0,u=0;u<s;u++)if(l(e,i+u)!==l(t,u)){d=!1;break}if(d)return i}return-1}function C(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var o=0;o<r;++o){var A=parseInt(t.substr(2*o,2),16);if(isNaN(A))return o;e[n+o]=A}return o}function S(e,t,n,r){return V(J(t,e.length-n),e,n,r)}function B(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function R(e,t,n,r){return B(e,t,n,r)}function T(e,t,n,r){return V(G(t),e,n,r)}function O(e,t,n,r){return V(function(e,t){for(var n,r,a,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function N(e,t,n){return 0===t&&n===e.length?s(e):s(e.slice(t,n))}function L(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var i,o,A,s,l=e[a],c=null,d=l>239?4:l>223?3:l>191?2:1;if(a+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(i=e[a+1]))&&(s=(31&l)<<6|63&i)>127&&(c=s);break;case 3:i=e[a+1],o=e[a+2],128==(192&i)&&128==(192&o)&&(s=(15&l)<<12|(63&i)<<6|63&o)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:i=e[a+1],o=e[a+2],A=e[a+3],128==(192&i)&&128==(192&o)&&128==(192&A)&&(s=(15&l)<<18|(63&i)<<12|(63&o)<<6|63&A)>65535&&s<1114112&&(c=s)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),a+=d}return function(e){var t=e.length;if(t<=Q)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Q));return n}(r)}g.TYPED_ARRAY_SUPPORT=void 0===e.TYPED_ARRAY_SUPPORT||e.TYPED_ARRAY_SUPPORT,p(),g.poolSize=8192,g._augment=function(e){return e.__proto__=g.prototype,e},g.from=function(e,t,n){return f(null,e,t,n)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&g[Symbol.species]),g.alloc=function(e,t,n){return function(e,t,n,r){return m(t),t<=0?h(e,t):void 0!==n?"string"==typeof r?h(e,t).fill(n,r):h(e,t).fill(n):h(e,t)}(null,e,t,n)},g.allocUnsafe=function(e){return _(null,e)},g.allocUnsafeSlow=function(e){return _(null,e)},g.isBuffer=function(e){return null!=e&&(!!e._isBuffer||X(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&X(e.slice(0,0))}(e))},g.compare=function(e,t){if(!y(e)||!y(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,a=0,i=Math.min(n,r);a<i;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0},g.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(e,t){if(!u(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return g.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=g.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){var i=e[n];if(!y(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,a),a+=i.length}return r},g.byteLength=v,g.prototype._isBuffer=!0,g.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)k(this,t,t+1);return this},g.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)k(this,t,t+3),k(this,t+1,t+2);return this},g.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this},g.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?L(this,0,e):x.apply(this,arguments)},g.prototype.equals=function(e){if(!y(e))throw new TypeError("Argument must be a Buffer");return this===e||0===g.compare(this,e)},g.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},g.prototype.compare=function(e,t,n,r,a){if(!y(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),A=Math.min(i,o),s=this.slice(r,a),l=e.slice(t,n),c=0;c<A;++c)if(s[c]!==l[c]){i=s[c],o=l[c];break}return i<o?-1:o<i?1:0},g.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},g.prototype.indexOf=function(e,t,n){return E(this,e,t,n,!0)},g.prototype.lastIndexOf=function(e,t,n){return E(this,e,t,n,!1)},g.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return S(this,e,t,n);case"ascii":return B(this,e,t,n);case"latin1":case"binary":return R(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;function U(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function P(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",i=t;i<n;++i)a+=Z(e[i]);return a}function M(e,t,n){for(var r=e.slice(t,n),a="",i=0;i<r.length;i+=2)a+=String.fromCharCode(r[i]+256*r[i+1]);return a}function z(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function $(e,t,n,r,a,i){if(!y(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function q(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-n,2);a<i;++a)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-n,4);a<i;++a)e[n+a]=t>>>8*(r?a:3-a)&255}function W(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,a){return a||W(e,0,n,4),c(e,t,n,r,23,4),n+4}function H(e,t,n,r,a){return a||W(e,0,n,8),c(e,t,n,r,52,8),n+8}g.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),g.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=g.prototype;else{var a=t-e;n=new g(a,void 0);for(var i=0;i<a;++i)n[i]=this[i+e]}return n},g.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);for(var r=this[e],a=1,i=0;++i<t&&(a*=256);)r+=this[e+i]*a;return r},g.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},g.prototype.readUInt8=function(e,t){return t||z(e,1,this.length),this[e]},g.prototype.readUInt16LE=function(e,t){return t||z(e,2,this.length),this[e]|this[e+1]<<8},g.prototype.readUInt16BE=function(e,t){return t||z(e,2,this.length),this[e]<<8|this[e+1]},g.prototype.readUInt32LE=function(e,t){return t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},g.prototype.readUInt32BE=function(e,t){return t||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},g.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);for(var r=this[e],a=1,i=0;++i<t&&(a*=256);)r+=this[e+i]*a;return r>=(a*=128)&&(r-=Math.pow(2,8*t)),r},g.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},g.prototype.readInt8=function(e,t){return t||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},g.prototype.readInt16LE=function(e,t){t||z(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},g.prototype.readInt16BE=function(e,t){t||z(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},g.prototype.readInt32LE=function(e,t){return t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},g.prototype.readInt32BE=function(e,t){return t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},g.prototype.readFloatLE=function(e,t){return t||z(e,4,this.length),l(this,e,!0,23,4)},g.prototype.readFloatBE=function(e,t){return t||z(e,4,this.length),l(this,e,!1,23,4)},g.prototype.readDoubleLE=function(e,t){return t||z(e,8,this.length),l(this,e,!0,52,8)},g.prototype.readDoubleBE=function(e,t){return t||z(e,8,this.length),l(this,e,!1,52,8)},g.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||$(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i<n&&(a*=256);)this[t+i]=e/a&255;return t+n},g.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||$(this,e,t,n,Math.pow(2,8*n)-1,0);var a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},g.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,1,255,0),g.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},g.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},g.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},g.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},g.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},g.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);$(this,e,t,n,a-1,-a)}var i=0,o=1,A=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===A&&0!==this[t+i-1]&&(A=1),this[t+i]=(e/o|0)-A&255;return t+n},g.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);$(this,e,t,n,a-1,-a)}var i=n-1,o=1,A=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===A&&0!==this[t+i+1]&&(A=1),this[t+i]=(e/o|0)-A&255;return t+n},g.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,1,127,-128),g.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},g.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},g.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},g.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},g.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),g.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},g.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},g.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},g.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},g.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},g.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var a,i=r-n;if(this===e&&n<t&&t<r)for(a=i-1;a>=0;--a)e[a+t]=this[a+n];else if(i<1e3||!g.TYPED_ARRAY_SUPPORT)for(a=0;a<i;++a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},g.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!g.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=y(e)?e:J(new g(e,r).toString()),A=o.length;for(i=0;i<n-t;++i)this[i+t]=o[i%A]}return this};var K=/[^+\/0-9A-Za-z-_]/g;function Z(e){return e<16?"0"+e.toString(16):e.toString(16)}function J(e,t){var n;t=t||1/0;for(var r=e.length,a=null,i=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function G(e){return function(e){var t,o,A,s,l,c;a||i();var d=e.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");l="="===e[d-2]?2:"="===e[d-1]?1:0,c=new r(3*d/4-l),A=l>0?d-4:d;var u=0;for(t=0,o=0;t<A;t+=4,o+=3)s=n[e.charCodeAt(t)]<<18|n[e.charCodeAt(t+1)]<<12|n[e.charCodeAt(t+2)]<<6|n[e.charCodeAt(t+3)],c[u++]=s>>16&255,c[u++]=s>>8&255,c[u++]=255&s;return 2===l?(s=n[e.charCodeAt(t)]<<2|n[e.charCodeAt(t+1)]>>4,c[u++]=255&s):1===l&&(s=n[e.charCodeAt(t)]<<10|n[e.charCodeAt(t+1)]<<4|n[e.charCodeAt(t+2)]>>2,c[u++]=s>>8&255,c[u++]=255&s),c}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function X(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ee={exports:{}};!function(e){function t(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"}),function(a,i){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?r.splice(o,1/0,a):r.push(a),~n.indexOf(i)&&(i=t.call(this,a,i))}else n.push(i);return null==e?i:e.call(this,a,i)}}(e.exports=function(e,n,r,a){return JSON.stringify(e,t(n,a),r)}).getSerialize=t}(ee);var te=Y(ee.exports);function ne(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function re(e){return new g(e=(e+=Array(5-e.length%4).join("=")).replace(/\-/g,"+").replace(/\_/g,"/"),"base64")}var ae=Object.freeze({__proto__:null,decode:re,encode:ne,validate:function(e){return/^[A-Za-z0-9\-_]+$/.test(e)},version:"1.0.0"});function ie(e){let t=e.length;for(;--t>=0;)e[t]=0}const oe=256,Ae=286,se=30,le=15,ce=new Uint8Array([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]),de=new Uint8Array([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]),ue=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),pe=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),he=new Array(576);ie(he);const ge=new Array(60);ie(ge);const fe=new Array(512);ie(fe);const me=new Array(256);ie(me);const _e=new Array(29);ie(_e);const be=new Array(se);function we(e,t,n,r,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=a,this.has_stree=e&&e.length}let ye,ve,xe;function ke(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}ie(be);const Ee=e=>e<256?fe[e]:fe[256+(e>>>7)],Ie=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},Ce=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,Ie(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},Se=(e,t,n)=>{Ce(e,n[2*t],n[2*t+1])},Be=(e,t)=>{let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},Re=(e,t,n)=>{const r=new Array(16);let a,i,o=0;for(a=1;a<=le;a++)o=o+n[a-1]<<1,r[a]=o;for(i=0;i<=t;i++){let t=e[2*i+1];0!==t&&(e[2*i]=Be(r[t]++,t))}},Te=e=>{let t;for(t=0;t<Ae;t++)e.dyn_ltree[2*t]=0;for(t=0;t<se;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},Oe=e=>{e.bi_valid>8?Ie(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Ne=(e,t,n,r)=>{const a=2*t,i=2*n;return e[a]<e[i]||e[a]===e[i]&&r[t]<=r[n]},Le=(e,t,n)=>{const r=e.heap[n];let a=n<<1;for(;a<=e.heap_len&&(a<e.heap_len&&Ne(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!Ne(t,r,e.heap[a],e.depth));)e.heap[n]=e.heap[a],n=a,a<<=1;e.heap[n]=r},Qe=(e,t,n)=>{let r,a,i,o,A=0;if(0!==e.sym_next)do{r=255&e.pending_buf[e.sym_buf+A++],r+=(255&e.pending_buf[e.sym_buf+A++])<<8,a=e.pending_buf[e.sym_buf+A++],0===r?Se(e,a,t):(i=me[a],Se(e,i+oe+1,t),o=ce[i],0!==o&&(a-=_e[i],Ce(e,a,o)),r--,i=Ee(r),Se(e,i,n),o=de[i],0!==o&&(r-=be[i],Ce(e,r,o)))}while(A<e.sym_next);Se(e,256,t)},Ue=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,a=t.stat_desc.has_stree,i=t.stat_desc.elems;let o,A,s,l=-1;for(e.heap_len=0,e.heap_max=573,o=0;o<i;o++)0!==n[2*o]?(e.heap[++e.heap_len]=l=o,e.depth[o]=0):n[2*o+1]=0;for(;e.heap_len<2;)s=e.heap[++e.heap_len]=l<2?++l:0,n[2*s]=1,e.depth[s]=0,e.opt_len--,a&&(e.static_len-=r[2*s+1]);for(t.max_code=l,o=e.heap_len>>1;o>=1;o--)Le(e,n,o);s=i;do{o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Le(e,n,1),A=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=A,n[2*s]=n[2*o]+n[2*A],e.depth[s]=(e.depth[o]>=e.depth[A]?e.depth[o]:e.depth[A])+1,n[2*o+1]=n[2*A+1]=s,e.heap[1]=s++,Le(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const n=t.dyn_tree,r=t.max_code,a=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,A=t.stat_desc.extra_base,s=t.stat_desc.max_length;let l,c,d,u,p,h,g=0;for(u=0;u<=le;u++)e.bl_count[u]=0;for(n[2*e.heap[e.heap_max]+1]=0,l=e.heap_max+1;l<573;l++)c=e.heap[l],u=n[2*n[2*c+1]+1]+1,u>s&&(u=s,g++),n[2*c+1]=u,c>r||(e.bl_count[u]++,p=0,c>=A&&(p=o[c-A]),h=n[2*c],e.opt_len+=h*(u+p),i&&(e.static_len+=h*(a[2*c+1]+p)));if(0!==g){do{for(u=s-1;0===e.bl_count[u];)u--;e.bl_count[u]--,e.bl_count[u+1]+=2,e.bl_count[s]--,g-=2}while(g>0);for(u=s;0!==u;u--)for(c=e.bl_count[u];0!==c;)d=e.heap[--l],d>r||(n[2*d+1]!==u&&(e.opt_len+=(u-n[2*d+1])*n[2*d],n[2*d+1]=u),c--)}})(e,t),Re(n,l,e.bl_count)},De=(e,t,n)=>{let r,a,i=-1,o=t[1],A=0,s=7,l=4;for(0===o&&(s=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)a=o,o=t[2*(r+1)+1],++A<s&&a===o||(A<l?e.bl_tree[2*a]+=A:0!==a?(a!==i&&e.bl_tree[2*a]++,e.bl_tree[32]++):A<=10?e.bl_tree[34]++:e.bl_tree[36]++,A=0,i=a,0===o?(s=138,l=3):a===o?(s=6,l=3):(s=7,l=4))},Pe=(e,t,n)=>{let r,a,i=-1,o=t[1],A=0,s=7,l=4;for(0===o&&(s=138,l=3),r=0;r<=n;r++)if(a=o,o=t[2*(r+1)+1],!(++A<s&&a===o)){if(A<l)do{Se(e,a,e.bl_tree)}while(0!==--A);else 0!==a?(a!==i&&(Se(e,a,e.bl_tree),A--),Se(e,16,e.bl_tree),Ce(e,A-3,2)):A<=10?(Se(e,17,e.bl_tree),Ce(e,A-3,3)):(Se(e,18,e.bl_tree),Ce(e,A-11,7));A=0,i=a,0===o?(s=138,l=3):a===o?(s=6,l=3):(s=7,l=4)}};let Me=!1;const ze=(e,t,n,r)=>{Ce(e,0+(r?1:0),3),Oe(e),Ie(e,n),Ie(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n};var $e=(e,t,n,r)=>{let a,i,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<oe;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0})(e)),Ue(e,e.l_desc),Ue(e,e.d_desc),o=(e=>{let t;for(De(e,e.dyn_ltree,e.l_desc.max_code),De(e,e.dyn_dtree,e.d_desc.max_code),Ue(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*pe[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),a=e.opt_len+3+7>>>3,i=e.static_len+3+7>>>3,i<=a&&(a=i)):a=i=n+5,n+4<=a&&-1!==t?ze(e,t,n,r):4===e.strategy||i===a?(Ce(e,2+(r?1:0),3),Qe(e,he,ge)):(Ce(e,4+(r?1:0),3),((e,t,n,r)=>{let a;for(Ce(e,t-257,5),Ce(e,n-1,5),Ce(e,r-4,4),a=0;a<r;a++)Ce(e,e.bl_tree[2*pe[a]+1],3);Pe(e,e.dyn_ltree,t-1),Pe(e,e.dyn_dtree,n-1)})(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Qe(e,e.dyn_ltree,e.dyn_dtree)),Te(e),r&&Oe(e)},qe={_tr_init:e=>{Me||((()=>{let e,t,n,r,a;const i=new Array(16);for(n=0,r=0;r<28;r++)for(_e[r]=n,e=0;e<1<<ce[r];e++)me[n++]=r;for(me[n-1]=r,a=0,r=0;r<16;r++)for(be[r]=a,e=0;e<1<<de[r];e++)fe[a++]=r;for(a>>=7;r<se;r++)for(be[r]=a<<7,e=0;e<1<<de[r]-7;e++)fe[256+a++]=r;for(t=0;t<=le;t++)i[t]=0;for(e=0;e<=143;)he[2*e+1]=8,e++,i[8]++;for(;e<=255;)he[2*e+1]=9,e++,i[9]++;for(;e<=279;)he[2*e+1]=7,e++,i[7]++;for(;e<=287;)he[2*e+1]=8,e++,i[8]++;for(Re(he,287,i),e=0;e<se;e++)ge[2*e+1]=5,ge[2*e]=Be(e,5);ye=new we(he,ce,257,Ae,le),ve=new we(ge,de,0,se,le),xe=new we(new Array(0),ue,0,19,7)})(),Me=!0),e.l_desc=new ke(e.dyn_ltree,ye),e.d_desc=new ke(e.dyn_dtree,ve),e.bl_desc=new ke(e.bl_tree,xe),e.bi_buf=0,e.bi_valid=0,Te(e)},_tr_stored_block:ze,_tr_flush_block:$e,_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(me[n]+oe+1)]++,e.dyn_dtree[2*Ee(t)]++),e.sym_next===e.sym_end),_tr_align:e=>{Ce(e,2,3),Se(e,256,he),(e=>{16===e.bi_valid?(Ie(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}};var je=(e,t,n,r)=>{let a=65535&e,i=e>>>16&65535,o=0;for(;0!==n;){o=n>2e3?2e3:n,n-=o;do{a=a+t[r++]|0,i=i+a|0}while(--o);a%=65521,i%=65521}return a|i<<16};const We=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t})());var Fe=(e,t,n,r)=>{const a=We,i=r+n;e^=-1;for(let n=r;n<i;n++)e=e>>>8^a[255&(e^t[n])];return-1^e},He={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Ke={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Ze,_tr_stored_block:Je,_tr_flush_block:Ge,_tr_tally:Ve,_tr_align:Xe}=qe,{Z_NO_FLUSH:Ye,Z_PARTIAL_FLUSH:et,Z_FULL_FLUSH:tt,Z_FINISH:nt,Z_BLOCK:rt,Z_OK:at,Z_STREAM_END:it,Z_STREAM_ERROR:ot,Z_DATA_ERROR:At,Z_BUF_ERROR:st,Z_DEFAULT_COMPRESSION:lt,Z_FILTERED:ct,Z_HUFFMAN_ONLY:dt,Z_RLE:ut,Z_FIXED:pt,Z_DEFAULT_STRATEGY:ht,Z_UNKNOWN:gt,Z_DEFLATED:ft}=Ke,mt=258,_t=262,bt=42,wt=113,yt=666,vt=(e,t)=>(e.msg=He[t],t),xt=e=>2*e-(e>4?9:0),kt=e=>{let t=e.length;for(;--t>=0;)e[t]=0},Et=e=>{let t,n,r,a=e.w_size;t=e.hash_size,r=t;do{n=e.head[--r],e.head[r]=n>=a?n-a:0}while(--t);t=a,r=t;do{n=e.prev[--r],e.prev[r]=n>=a?n-a:0}while(--t)};let It=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask;const Ct=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},St=(e,t)=>{Ge(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ct(e.strm)},Bt=(e,t)=>{e.pending_buf[e.pending++]=t},Rt=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},Tt=(e,t,n,r)=>{let a=e.avail_in;return a>r&&(a=r),0===a?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),n),1===e.state.wrap?e.adler=je(e.adler,t,a,n):2===e.state.wrap&&(e.adler=Fe(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)},Ot=(e,t)=>{let n,r,a=e.max_chain_length,i=e.strstart,o=e.prev_length,A=e.nice_match;const s=e.strstart>e.w_size-_t?e.strstart-(e.w_size-_t):0,l=e.window,c=e.w_mask,d=e.prev,u=e.strstart+mt;let p=l[i+o-1],h=l[i+o];e.prev_length>=e.good_match&&(a>>=2),A>e.lookahead&&(A=e.lookahead);do{if(n=t,l[n+o]===h&&l[n+o-1]===p&&l[n]===l[i]&&l[++n]===l[i+1]){i+=2,n++;do{}while(l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&i<u);if(r=mt-(u-i),i=u-mt,r>o){if(e.match_start=t,o=r,r>=A)break;p=l[i+o-1],h=l[i+o]}}}while((t=d[t&c])>s&&0!==--a);return o<=e.lookahead?o:e.lookahead},Nt=e=>{const t=e.w_size;let n,r,a;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-_t)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),Et(e),r+=t),0===e.strm.avail_in)break;if(n=Tt(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=It(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=It(e,e.ins_h,e.window[a+3-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<_t&&0!==e.strm.avail_in)},Lt=(e,t)=>{let n,r,a,i=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,o=0,A=e.strm.avail_in;do{if(n=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a)break;if(a=e.strm.avail_out-a,r=e.strstart-e.block_start,n>r+e.strm.avail_in&&(n=r+e.strm.avail_in),n>a&&(n=a),n<i&&(0===n&&t!==nt||t===Ye||n!==r+e.strm.avail_in))break;o=t===nt&&n===r+e.strm.avail_in?1:0,Je(e,0,0,o),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Ct(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(Tt(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===o);return A-=e.strm.avail_in,A&&(A>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=A&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-A,e.strm.next_in),e.strstart),e.strstart+=A,e.insert+=A>e.w_size-e.insert?e.w_size-e.insert:A),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?4:t!==Ye&&t!==nt&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(Tt(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,i=a>e.w_size?e.w_size:a,r=e.strstart-e.block_start,(r>=i||(r||t===nt)&&t!==Ye&&0===e.strm.avail_in&&r<=a)&&(n=r>a?a:r,o=t===nt&&0===e.strm.avail_in&&n===r?1:0,Je(e,e.block_start,n,o),e.block_start+=n,Ct(e.strm)),o?3:1)},Qt=(e,t)=>{let n,r;for(;;){if(e.lookahead<_t){if(Nt(e),e.lookahead<_t&&t===Ye)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=It(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-_t&&(e.match_length=Ot(e,n)),e.match_length>=3)if(r=Ve(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=It(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=It(e,e.ins_h,e.window[e.strstart+1]);else r=Ve(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(St(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===nt?(St(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(St(e,!1),0===e.strm.avail_out)?1:2},Ut=(e,t)=>{let n,r,a;for(;;){if(e.lookahead<_t){if(Nt(e),e.lookahead<_t&&t===Ye)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=It(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-_t&&(e.match_length=Ot(e,n),e.match_length<=5&&(e.strategy===ct||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-3,r=Ve(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=It(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(St(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(r=Ve(e,0,e.window[e.strstart-1]),r&&St(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Ve(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===nt?(St(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(St(e,!1),0===e.strm.avail_out)?1:2};function Dt(e,t,n,r,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=a}const Pt=[new Dt(0,0,0,0,Lt),new Dt(4,4,8,4,Qt),new Dt(4,5,16,8,Qt),new Dt(4,6,32,32,Qt),new Dt(4,4,16,16,Ut),new Dt(8,16,32,32,Ut),new Dt(8,16,128,128,Ut),new Dt(8,32,128,256,Ut),new Dt(32,128,258,1024,Ut),new Dt(32,258,258,4096,Ut)];function Mt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ft,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),kt(this.dyn_ltree),kt(this.dyn_dtree),kt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),kt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),kt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const zt=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==bt&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&t.status!==wt&&t.status!==yt?1:0},$t=e=>{if(zt(e))return vt(e,ot);e.total_in=e.total_out=0,e.data_type=gt;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?bt:wt,e.adler=2===t.wrap?0:1,t.last_flush=-2,Ze(t),at},qt=e=>{const t=$t(e);var n;return t===at&&((n=e.state).window_size=2*n.w_size,kt(n.head),n.max_lazy_match=Pt[n.level].max_lazy,n.good_match=Pt[n.level].good_length,n.nice_match=Pt[n.level].nice_length,n.max_chain_length=Pt[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),t},jt=(e,t,n,r,a,i)=>{if(!e)return ot;let o=1;if(t===lt&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),a<1||a>9||n!==ft||r<8||r>15||t<0||t>9||i<0||i>pt||8===r&&1!==o)return vt(e,ot);8===r&&(r=9);const A=new Mt;return e.state=A,A.strm=e,A.status=bt,A.wrap=o,A.gzhead=null,A.w_bits=r,A.w_size=1<<A.w_bits,A.w_mask=A.w_size-1,A.hash_bits=a+7,A.hash_size=1<<A.hash_bits,A.hash_mask=A.hash_size-1,A.hash_shift=~~((A.hash_bits+3-1)/3),A.window=new Uint8Array(2*A.w_size),A.head=new Uint16Array(A.hash_size),A.prev=new Uint16Array(A.w_size),A.lit_bufsize=1<<a+6,A.pending_buf_size=4*A.lit_bufsize,A.pending_buf=new Uint8Array(A.pending_buf_size),A.sym_buf=A.lit_bufsize,A.sym_end=3*(A.lit_bufsize-1),A.level=t,A.strategy=i,A.method=n,qt(e)};var Wt={deflateInit:(e,t)=>jt(e,t,ft,15,8,ht),deflateInit2:jt,deflateReset:qt,deflateResetKeep:$t,deflateSetHeader:(e,t)=>zt(e)||2!==e.state.wrap?ot:(e.state.gzhead=t,at),deflate:(e,t)=>{if(zt(e)||t>rt||t<0)return e?vt(e,ot):ot;const n=e.state;if(!e.output||0!==e.avail_in&&!e.input||n.status===yt&&t!==nt)return vt(e,0===e.avail_out?st:ot);const r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(Ct(e),0===e.avail_out)return n.last_flush=-1,at}else if(0===e.avail_in&&xt(t)<=xt(r)&&t!==nt)return vt(e,st);if(n.status===yt&&0!==e.avail_in)return vt(e,st);if(n.status===bt&&0===n.wrap&&(n.status=wt),n.status===bt){let t=ft+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=dt||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=r<<6,0!==n.strstart&&(t|=32),t+=31-t%31,Rt(n,t),0!==n.strstart&&(Rt(n,e.adler>>>16),Rt(n,65535&e.adler)),e.adler=1,n.status=wt,Ct(e),0!==n.pending)return n.last_flush=-1,at}if(57===n.status)if(e.adler=0,Bt(n,31),Bt(n,139),Bt(n,8),n.gzhead)Bt(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Bt(n,255&n.gzhead.time),Bt(n,n.gzhead.time>>8&255),Bt(n,n.gzhead.time>>16&255),Bt(n,n.gzhead.time>>24&255),Bt(n,9===n.level?2:n.strategy>=dt||n.level<2?4:0),Bt(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Bt(n,255&n.gzhead.extra.length),Bt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Fe(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(Bt(n,0),Bt(n,0),Bt(n,0),Bt(n,0),Bt(n,0),Bt(n,9===n.level?2:n.strategy>=dt||n.level<2?4:0),Bt(n,3),n.status=wt,Ct(e),0!==n.pending)return n.last_flush=-1,at;if(69===n.status){if(n.gzhead.extra){let t=n.pending,r=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=Fe(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=a,Ct(e),0!==n.pending)return n.last_flush=-1,at;t=0,r-=a}let a=new Uint8Array(n.gzhead.extra);n.pending_buf.set(a.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=Fe(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=Fe(e.adler,n.pending_buf,n.pending-r,r)),Ct(e),0!==n.pending)return n.last_flush=-1,at;r=0}t=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Bt(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=Fe(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=Fe(e.adler,n.pending_buf,n.pending-r,r)),Ct(e),0!==n.pending)return n.last_flush=-1,at;r=0}t=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Bt(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=Fe(e.adler,n.pending_buf,n.pending-r,r))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Ct(e),0!==n.pending))return n.last_flush=-1,at;Bt(n,255&e.adler),Bt(n,e.adler>>8&255),e.adler=0}if(n.status=wt,Ct(e),0!==n.pending)return n.last_flush=-1,at}if(0!==e.avail_in||0!==n.lookahead||t!==Ye&&n.status!==yt){let r=0===n.level?Lt(n,t):n.strategy===dt?((e,t)=>{let n;for(;;){if(0===e.lookahead&&(Nt(e),0===e.lookahead)){if(t===Ye)return 1;break}if(e.match_length=0,n=Ve(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(St(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===nt?(St(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(St(e,!1),0===e.strm.avail_out)?1:2})(n,t):n.strategy===ut?((e,t)=>{let n,r,a,i;const o=e.window;for(;;){if(e.lookahead<=mt){if(Nt(e),e.lookahead<=mt&&t===Ye)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(a=e.strstart-1,r=o[a],r===o[++a]&&r===o[++a]&&r===o[++a])){i=e.strstart+mt;do{}while(r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&a<i);e.match_length=mt-(i-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=Ve(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Ve(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(St(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===nt?(St(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(St(e,!1),0===e.strm.avail_out)?1:2})(n,t):Pt[n.level].func(n,t);if(3!==r&&4!==r||(n.status=yt),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),at;if(2===r&&(t===et?Xe(n):t!==rt&&(Je(n,0,0,!1),t===tt&&(kt(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Ct(e),0===e.avail_out))return n.last_flush=-1,at}return t!==nt?at:n.wrap<=0?it:(2===n.wrap?(Bt(n,255&e.adler),Bt(n,e.adler>>8&255),Bt(n,e.adler>>16&255),Bt(n,e.adler>>24&255),Bt(n,255&e.total_in),Bt(n,e.total_in>>8&255),Bt(n,e.total_in>>16&255),Bt(n,e.total_in>>24&255)):(Rt(n,e.adler>>>16),Rt(n,65535&e.adler)),Ct(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?at:it)},deflateEnd:e=>{if(zt(e))return ot;const t=e.state.status;return e.state=null,t===wt?vt(e,At):at},deflateSetDictionary:(e,t)=>{let n=t.length;if(zt(e))return ot;const r=e.state,a=r.wrap;if(2===a||1===a&&r.status!==bt||r.lookahead)return ot;if(1===a&&(e.adler=je(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===a&&(kt(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}const i=e.avail_in,o=e.next_in,A=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Nt(r);r.lookahead>=3;){let e=r.strstart,t=r.lookahead-2;do{r.ins_h=It(r,r.ins_h,r.window[e+3-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++}while(--t);r.strstart=e,r.lookahead=2,Nt(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=o,e.input=A,e.avail_in=i,r.wrap=a,at},deflateInfo:"pako deflate (from Nodeca project)"};const Ft=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Ht=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const t in n)Ft(n,t)&&(e[t]=n[t])}}return e},Kt=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;const n=new Uint8Array(t);for(let t=0,r=0,a=e.length;t<a;t++){let a=e[t];n.set(a,r),r+=a.length}return n};let Zt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){Zt=!1}const Jt=new Uint8Array(256);for(let e=0;e<256;e++)Jt[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Jt[254]=Jt[254]=1;var Gt=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,n,r,a,i,o=e.length,A=0;for(a=0;a<o;a++)n=e.charCodeAt(a),55296==(64512&n)&&a+1<o&&(r=e.charCodeAt(a+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),a++)),A+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(A),i=0,a=0;i<A;a++)n=e.charCodeAt(a),55296==(64512&n)&&a+1<o&&(r=e.charCodeAt(a+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),a++)),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t},Vt=(e,t)=>{const n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let r,a;const i=new Array(2*n);for(a=0,r=0;r<n;){let t=e[r++];if(t<128){i[a++]=t;continue}let o=Jt[t];if(o>4)i[a++]=65533,r+=o-1;else{for(t&=2===o?31:3===o?15:7;o>1&&r<n;)t=t<<6|63&e[r++],o--;o>1?i[a++]=65533:t<65536?i[a++]=t:(t-=65536,i[a++]=55296|t>>10&1023,i[a++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&Zt)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n})(i,a)},Xt=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+Jt[e[n]]>t?n:t};var Yt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const en=Object.prototype.toString,{Z_NO_FLUSH:tn,Z_SYNC_FLUSH:nn,Z_FULL_FLUSH:rn,Z_FINISH:an,Z_OK:on,Z_STREAM_END:An,Z_DEFAULT_COMPRESSION:sn,Z_DEFAULT_STRATEGY:ln,Z_DEFLATED:cn}=Ke;function dn(e){this.options=Ht({level:sn,method:cn,chunkSize:16384,windowBits:15,memLevel:8,strategy:ln},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Yt,this.strm.avail_out=0;let n=Wt.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==on)throw new Error(He[n]);if(t.header&&Wt.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?Gt(t.dictionary):"[object ArrayBuffer]"===en.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=Wt.deflateSetDictionary(this.strm,e),n!==on)throw new Error(He[n]);this._dict_set=!0}}function un(e,t){const n=new dn(t);if(n.push(e,!0),n.err)throw n.msg||He[n.err];return n.result}dn.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let a,i;if(this.ended)return!1;for(i=t===~~t?t:!0===t?an:tn,"string"==typeof e?n.input=Gt(e):"[object Array