UNPKG

@larva.io/webcomponents

Version:

Fentrica SmartUnits WebComponents package

10 lines 203 kB
/*! * (C) Fentrica http://fentrica.com - Seee LICENSE.md */ import{g as t}from"./p-C56buD75.js";import{g as e,a as r}from"./p-BhmlBuJX.js";var i=[];var n=[];var s=typeof Uint8Array!=="undefined"?Uint8Array:Array;var o=false;function a(){o=true;var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var e=0,r=t.length;e<r;++e){i[e]=t[e];n[t.charCodeAt(e)]=e}n["-".charCodeAt(0)]=62;n["_".charCodeAt(0)]=63}function f(t){if(!o){a()}var e,r,i,f,u,c;var h=t.length;if(h%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}u=t[h-2]==="="?2:t[h-1]==="="?1:0;c=new s(h*3/4-u);i=u>0?h-4:h;var l=0;for(e=0,r=0;e<i;e+=4,r+=3){f=n[t.charCodeAt(e)]<<18|n[t.charCodeAt(e+1)]<<12|n[t.charCodeAt(e+2)]<<6|n[t.charCodeAt(e+3)];c[l++]=f>>16&255;c[l++]=f>>8&255;c[l++]=f&255}if(u===2){f=n[t.charCodeAt(e)]<<2|n[t.charCodeAt(e+1)]>>4;c[l++]=f&255}else if(u===1){f=n[t.charCodeAt(e)]<<10|n[t.charCodeAt(e+1)]<<4|n[t.charCodeAt(e+2)]>>2;c[l++]=f>>8&255;c[l++]=f&255}return c}function u(t){return i[t>>18&63]+i[t>>12&63]+i[t>>6&63]+i[t&63]}function c(t,e,r){var i;var n=[];for(var s=e;s<r;s+=3){i=(t[s]<<16)+(t[s+1]<<8)+t[s+2];n.push(u(i))}return n.join("")}function h(t){if(!o){a()}var e;var r=t.length;var n=r%3;var s="";var f=[];var u=16383;for(var h=0,l=r-n;h<l;h+=u){f.push(c(t,h,h+u>l?l:h+u))}if(n===1){e=t[r-1];s+=i[e>>2];s+=i[e<<4&63];s+="=="}else if(n===2){e=(t[r-2]<<8)+t[r-1];s+=i[e>>10];s+=i[e>>4&63];s+=i[e<<2&63];s+="="}f.push(s);return f.join("")}function l(t,e,r,i,n){var s,o;var a=n*8-i-1;var f=(1<<a)-1;var u=f>>1;var c=-7;var h=r?n-1:0;var l=r?-1:1;var d=t[e+h];h+=l;s=d&(1<<-c)-1;d>>=-c;c+=a;for(;c>0;s=s*256+t[e+h],h+=l,c-=8){}o=s&(1<<-c)-1;s>>=-c;c+=i;for(;c>0;o=o*256+t[e+h],h+=l,c-=8){}if(s===0){s=1-u}else if(s===f){return o?NaN:(d?-1:1)*Infinity}else{o=o+Math.pow(2,i);s=s-u}return(d?-1:1)*o*Math.pow(2,s-i)}function d(t,e,r,i,n,s){var o,a,f;var u=s*8-n-1;var c=(1<<u)-1;var h=c>>1;var l=n===23?Math.pow(2,-24)-Math.pow(2,-77):0;var d=i?0:s-1;var v=i?1:-1;var p=e<0||e===0&&1/e<0?1:0;e=Math.abs(e);if(isNaN(e)||e===Infinity){a=isNaN(e)?1:0;o=c}else{o=Math.floor(Math.log(e)/Math.LN2);if(e*(f=Math.pow(2,-o))<1){o--;f*=2}if(o+h>=1){e+=l/f}else{e+=l*Math.pow(2,1-h)}if(e*f>=2){o++;f/=2}if(o+h>=c){a=0;o=c}else if(o+h>=1){a=(e*f-1)*Math.pow(2,n);o=o+h}else{a=e*Math.pow(2,h-1)*Math.pow(2,n);o=0}}for(;n>=8;t[r+d]=a&255,d+=v,a/=256,n-=8){}o=o<<n|a;u+=n;for(;u>0;t[r+d]=o&255,d+=v,o/=256,u-=8){}t[r+d-v]|=p*128}var v={}.toString;var p=Array.isArray||function(t){return v.call(t)=="[object Array]"}; /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> * @license MIT */var m=50;b.TYPED_ARRAY_SUPPORT=t.TYPED_ARRAY_SUPPORT!==undefined?t.TYPED_ARRAY_SUPPORT:true;function w(){return b.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function y(t,e){if(w()<e){throw new RangeError("Invalid typed array length")}if(b.TYPED_ARRAY_SUPPORT){t=new Uint8Array(e);t.__proto__=b.prototype}else{if(t===null){t=new b(e)}t.length=e}return t}function b(t,e,r){if(!b.TYPED_ARRAY_SUPPORT&&!(this instanceof b)){return new b(t,e,r)}if(typeof t==="number"){if(typeof e==="string"){throw new Error("If encoding is specified then the first argument must be a string")}return T(this,t)}return g(this,t,e,r)}b.poolSize=8192;b._augment=function(t){t.__proto__=b.prototype;return t};function g(t,e,r,i){if(typeof e==="number"){throw new TypeError('"value" argument must not be a number')}if(typeof ArrayBuffer!=="undefined"&&e instanceof ArrayBuffer){return R(t,e,r,i)}if(typeof e==="string"){return x(t,e,r)}return C(t,e)}b.from=function(t,e,r){return g(null,t,e,r)};if(b.TYPED_ARRAY_SUPPORT){b.prototype.__proto__=Uint8Array.prototype;b.__proto__=Uint8Array}function _(t){if(typeof t!=="number"){throw new TypeError('"size" argument must be a number')}else if(t<0){throw new RangeError('"size" argument must not be negative')}}function E(t,e,r,i){_(e);if(e<=0){return y(t,e)}if(r!==undefined){return typeof i==="string"?y(t,e).fill(r,i):y(t,e).fill(r)}return y(t,e)}b.alloc=function(t,e,r){return E(null,t,e,r)};function T(t,e){_(e);t=y(t,e<0?0:A(e)|0);if(!b.TYPED_ARRAY_SUPPORT){for(var r=0;r<e;++r){t[r]=0}}return t}b.allocUnsafe=function(t){return T(null,t)};b.allocUnsafeSlow=function(t){return T(null,t)};function x(t,e,r){if(typeof r!=="string"||r===""){r="utf8"}if(!b.isEncoding(r)){throw new TypeError('"encoding" must be a valid string encoding')}var i=M(e,r)|0;t=y(t,i);var n=t.write(e,r);if(n!==i){t=t.slice(0,n)}return t}function S(t,e){var r=e.length<0?0:A(e.length)|0;t=y(t,r);for(var i=0;i<r;i+=1){t[i]=e[i]&255}return t}function R(t,e,r,i){if(r<0||e.byteLength<r){throw new RangeError("'offset' is out of bounds")}if(e.byteLength<r+(i||0)){throw new RangeError("'length' is out of bounds")}if(r===undefined&&i===undefined){e=new Uint8Array(e)}else if(i===undefined){e=new Uint8Array(e,r)}else{e=new Uint8Array(e,r,i)}if(b.TYPED_ARRAY_SUPPORT){t=e;t.__proto__=b.prototype}else{t=S(t,e)}return t}function C(t,e){if(k(e)){var r=A(e.length)|0;t=y(t,r);if(t.length===0){return t}e.copy(t,0,0,r);return t}if(e){if(typeof ArrayBuffer!=="undefined"&&e.buffer instanceof ArrayBuffer||"length"in e){if(typeof e.length!=="number"||ht(e.length)){return y(t,0)}return S(t,e)}if(e.type==="Buffer"&&p(e.data)){return S(t,e.data)}}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function A(t){if(t>=w()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+w().toString(16)+" bytes")}return t|0}b.isBuffer=lt;function k(t){return!!(t!=null&&t._isBuffer)}b.compare=function t(e,r){if(!k(e)||!k(r)){throw new TypeError("Arguments must be Buffers")}if(e===r)return 0;var i=e.length;var n=r.length;for(var s=0,o=Math.min(i,n);s<o;++s){if(e[s]!==r[s]){i=e[s];n=r[s];break}}if(i<n)return-1;if(n<i)return 1;return 0};b.isEncoding=function t(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 true;default:return false}};b.concat=function t(e,r){if(!p(e)){throw new TypeError('"list" argument must be an Array of Buffers')}if(e.length===0){return b.alloc(0)}var i;if(r===undefined){r=0;for(i=0;i<e.length;++i){r+=e[i].length}}var n=b.allocUnsafe(r);var s=0;for(i=0;i<e.length;++i){var o=e[i];if(!k(o)){throw new TypeError('"list" argument must be an Array of Buffers')}o.copy(n,s);s+=o.length}return n};function M(t,e){if(k(t)){return t.length}if(typeof ArrayBuffer!=="undefined"&&typeof ArrayBuffer.isView==="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)){return t.byteLength}if(typeof t!=="string"){t=""+t}var r=t.length;if(r===0)return 0;var i=false;for(;;){switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case undefined:return ot(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ut(t).length;default:if(i)return ot(t).length;e=(""+e).toLowerCase();i=true}}}b.byteLength=M;function B(t,e,r){var i=false;if(e===undefined||e<0){e=0}if(e>this.length){return""}if(r===undefined||r>this.length){r=this.length}if(r<=0){return""}r>>>=0;e>>>=0;if(r<=e){return""}if(!t)t="utf8";while(true){switch(t){case"hex":return G(this,e,r);case"utf8":case"utf-8":return q(this,e,r);case"ascii":return W(this,e,r);case"latin1":case"binary":return V(this,e,r);case"base64":return L(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase();i=true}}}b.prototype._isBuffer=true;function j(t,e,r){var i=t[e];t[e]=t[r];t[r]=i}b.prototype.swap16=function t(){var e=this.length;if(e%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var r=0;r<e;r+=2){j(this,r,r+1)}return this};b.prototype.swap32=function t(){var e=this.length;if(e%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(var r=0;r<e;r+=4){j(this,r,r+3);j(this,r+1,r+2)}return this};b.prototype.swap64=function t(){var e=this.length;if(e%8!==0){throw new RangeError("Buffer size must be a multiple of 64-bits")}for(var r=0;r<e;r+=8){j(this,r,r+7);j(this,r+1,r+6);j(this,r+2,r+5);j(this,r+3,r+4)}return this};b.prototype.toString=function t(){var e=this.length|0;if(e===0)return"";if(arguments.length===0)return q(this,0,e);return B.apply(this,arguments)};b.prototype.equals=function t(e){if(!k(e))throw new TypeError("Argument must be a Buffer");if(this===e)return true;return b.compare(this,e)===0};b.prototype.inspect=function t(){var e="";var r=m;if(this.length>0){e=this.toString("hex",0,r).match(/.{2}/g).join(" ");if(this.length>r)e+=" ... "}return"<Buffer "+e+">"};b.prototype.compare=function t(e,r,i,n,s){if(!k(e)){throw new TypeError("Argument must be a Buffer")}if(r===undefined){r=0}if(i===undefined){i=e?e.length:0}if(n===undefined){n=0}if(s===undefined){s=this.length}if(r<0||i>e.length||n<0||s>this.length){throw new RangeError("out of range index")}if(n>=s&&r>=i){return 0}if(n>=s){return-1}if(r>=i){return 1}r>>>=0;i>>>=0;n>>>=0;s>>>=0;if(this===e)return 0;var o=s-n;var a=i-r;var f=Math.min(o,a);var u=this.slice(n,s);var c=e.slice(r,i);for(var h=0;h<f;++h){if(u[h]!==c[h]){o=u[h];a=c[h];break}}if(o<a)return-1;if(a<o)return 1;return 0};function I(t,e,r,i,n){if(t.length===0)return-1;if(typeof r==="string"){i=r;r=0}else if(r>2147483647){r=2147483647}else if(r<-2147483648){r=-2147483648}r=+r;if(isNaN(r)){r=n?0:t.length-1}if(r<0)r=t.length+r;if(r>=t.length){if(n)return-1;else r=t.length-1}else if(r<0){if(n)r=0;else return-1}if(typeof e==="string"){e=b.from(e,i)}if(k(e)){if(e.length===0){return-1}return O(t,e,r,i,n)}else if(typeof e==="number"){e=e&255;if(b.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==="function"){if(n){return Uint8Array.prototype.indexOf.call(t,e,r)}else{return Uint8Array.prototype.lastIndexOf.call(t,e,r)}}return O(t,[e],r,i,n)}throw new TypeError("val must be string, number or Buffer")}function O(t,e,r,i,n){var s=1;var o=t.length;var a=e.length;if(i!==undefined){i=String(i).toLowerCase();if(i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le"){if(t.length<2||e.length<2){return-1}s=2;o/=2;a/=2;r/=2}}function f(t,e){if(s===1){return t[e]}else{return t.readUInt16BE(e*s)}}var u;if(n){var c=-1;for(u=r;u<o;u++){if(f(t,u)===f(e,c===-1?0:u-c)){if(c===-1)c=u;if(u-c+1===a)return c*s}else{if(c!==-1)u-=u-c;c=-1}}}else{if(r+a>o)r=o-a;for(u=r;u>=0;u--){var h=true;for(var l=0;l<a;l++){if(f(t,u+l)!==f(e,l)){h=false;break}}if(h)return u}}return-1}b.prototype.includes=function t(e,r,i){return this.indexOf(e,r,i)!==-1};b.prototype.indexOf=function t(e,r,i){return I(this,e,r,i,true)};b.prototype.lastIndexOf=function t(e,r,i){return I(this,e,r,i,false)};function F(t,e,r,i){r=Number(r)||0;var n=t.length-r;if(!i){i=n}else{i=Number(i);if(i>n){i=n}}var s=e.length;if(s%2!==0)throw new TypeError("Invalid hex string");if(i>s/2){i=s/2}for(var o=0;o<i;++o){var a=parseInt(e.substr(o*2,2),16);if(isNaN(a))return o;t[r+o]=a}return o}function $(t,e,r,i){return ct(ot(e,t.length-r),t,r,i)}function P(t,e,r,i){return ct(at(e),t,r,i)}function N(t,e,r,i){return P(t,e,r,i)}function U(t,e,r,i){return ct(ut(e),t,r,i)}function D(t,e,r,i){return ct(ft(e,t.length-r),t,r,i)}b.prototype.write=function t(e,r,i,n){if(r===undefined){n="utf8";i=this.length;r=0}else if(i===undefined&&typeof r==="string"){n=r;i=this.length;r=0}else if(isFinite(r)){r=r|0;if(isFinite(i)){i=i|0;if(n===undefined)n="utf8"}else{n=i;i=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var s=this.length-r;if(i===undefined||i>s)i=s;if(e.length>0&&(i<0||r<0)||r>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!n)n="utf8";var o=false;for(;;){switch(n){case"hex":return F(this,e,r,i);case"utf8":case"utf-8":return $(this,e,r,i);case"ascii":return P(this,e,r,i);case"latin1":case"binary":return N(this,e,r,i);case"base64":return U(this,e,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,r,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase();o=true}}};b.prototype.toJSON=function t(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(t,e,r){if(e===0&&r===t.length){return h(t)}else{return h(t.slice(e,r))}}function q(t,e,r){r=Math.min(t.length,r);var i=[];var n=e;while(n<r){var s=t[n];var o=null;var a=s>239?4:s>223?3:s>191?2:1;if(n+a<=r){var f,u,c,h;switch(a){case 1:if(s<128){o=s}break;case 2:f=t[n+1];if((f&192)===128){h=(s&31)<<6|f&63;if(h>127){o=h}}break;case 3:f=t[n+1];u=t[n+2];if((f&192)===128&&(u&192)===128){h=(s&15)<<12|(f&63)<<6|u&63;if(h>2047&&(h<55296||h>57343)){o=h}}break;case 4:f=t[n+1];u=t[n+2];c=t[n+3];if((f&192)===128&&(u&192)===128&&(c&192)===128){h=(s&15)<<18|(f&63)<<12|(u&63)<<6|c&63;if(h>65535&&h<1114112){o=h}}}}if(o===null){o=65533;a=1}else if(o>65535){o-=65536;i.push(o>>>10&1023|55296);o=56320|o&1023}i.push(o);n+=a}return z(i)}var H=4096;function z(t){var e=t.length;if(e<=H){return String.fromCharCode.apply(String,t)}var r="";var i=0;while(i<e){r+=String.fromCharCode.apply(String,t.slice(i,i+=H))}return r}function W(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n){i+=String.fromCharCode(t[n]&127)}return i}function V(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n){i+=String.fromCharCode(t[n])}return i}function G(t,e,r){var i=t.length;if(!e||e<0)e=0;if(!r||r<0||r>i)r=i;var n="";for(var s=e;s<r;++s){n+=st(t[s])}return n}function J(t,e,r){var i=t.slice(e,r);var n="";for(var s=0;s<i.length;s+=2){n+=String.fromCharCode(i[s]+i[s+1]*256)}return n}b.prototype.slice=function t(e,r){var i=this.length;e=~~e;r=r===undefined?i:~~r;if(e<0){e+=i;if(e<0)e=0}else if(e>i){e=i}if(r<0){r+=i;if(r<0)r=0}else if(r>i){r=i}if(r<e)r=e;var n;if(b.TYPED_ARRAY_SUPPORT){n=this.subarray(e,r);n.__proto__=b.prototype}else{var s=r-e;n=new b(s,undefined);for(var o=0;o<s;++o){n[o]=this[o+e]}}return n};function Y(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}b.prototype.readUIntLE=function t(e,r,i){e=e|0;r=r|0;if(!i)Y(e,r,this.length);var n=this[e];var s=1;var o=0;while(++o<r&&(s*=256)){n+=this[e+o]*s}return n};b.prototype.readUIntBE=function t(e,r,i){e=e|0;r=r|0;if(!i){Y(e,r,this.length)}var n=this[e+--r];var s=1;while(r>0&&(s*=256)){n+=this[e+--r]*s}return n};b.prototype.readUInt8=function t(e,r){if(!r)Y(e,1,this.length);return this[e]};b.prototype.readUInt16LE=function t(e,r){if(!r)Y(e,2,this.length);return this[e]|this[e+1]<<8};b.prototype.readUInt16BE=function t(e,r){if(!r)Y(e,2,this.length);return this[e]<<8|this[e+1]};b.prototype.readUInt32LE=function t(e,r){if(!r)Y(e,4,this.length);return(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};b.prototype.readUInt32BE=function t(e,r){if(!r)Y(e,4,this.length);return this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};b.prototype.readIntLE=function t(e,r,i){e=e|0;r=r|0;if(!i)Y(e,r,this.length);var n=this[e];var s=1;var o=0;while(++o<r&&(s*=256)){n+=this[e+o]*s}s*=128;if(n>=s)n-=Math.pow(2,8*r);return n};b.prototype.readIntBE=function t(e,r,i){e=e|0;r=r|0;if(!i)Y(e,r,this.length);var n=r;var s=1;var o=this[e+--n];while(n>0&&(s*=256)){o+=this[e+--n]*s}s*=128;if(o>=s)o-=Math.pow(2,8*r);return o};b.prototype.readInt8=function t(e,r){if(!r)Y(e,1,this.length);if(!(this[e]&128))return this[e];return(255-this[e]+1)*-1};b.prototype.readInt16LE=function t(e,r){if(!r)Y(e,2,this.length);var i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i};b.prototype.readInt16BE=function t(e,r){if(!r)Y(e,2,this.length);var i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i};b.prototype.readInt32LE=function t(e,r){if(!r)Y(e,4,this.length);return this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};b.prototype.readInt32BE=function t(e,r){if(!r)Y(e,4,this.length);return this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};b.prototype.readFloatLE=function t(e,r){if(!r)Y(e,4,this.length);return l(this,e,true,23,4)};b.prototype.readFloatBE=function t(e,r){if(!r)Y(e,4,this.length);return l(this,e,false,23,4)};b.prototype.readDoubleLE=function t(e,r){if(!r)Y(e,8,this.length);return l(this,e,true,52,8)};b.prototype.readDoubleBE=function t(e,r){if(!r)Y(e,8,this.length);return l(this,e,false,52,8)};function Z(t,e,r,i,n,s){if(!k(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<s)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}b.prototype.writeUIntLE=function t(e,r,i,n){e=+e;r=r|0;i=i|0;if(!n){var s=Math.pow(2,8*i)-1;Z(this,e,r,i,s,0)}var o=1;var a=0;this[r]=e&255;while(++a<i&&(o*=256)){this[r+a]=e/o&255}return r+i};b.prototype.writeUIntBE=function t(e,r,i,n){e=+e;r=r|0;i=i|0;if(!n){var s=Math.pow(2,8*i)-1;Z(this,e,r,i,s,0)}var o=i-1;var a=1;this[r+o]=e&255;while(--o>=0&&(a*=256)){this[r+o]=e/a&255}return r+i};b.prototype.writeUInt8=function t(e,r,i){e=+e;r=r|0;if(!i)Z(this,e,r,1,255,0);if(!b.TYPED_ARRAY_SUPPORT)e=Math.floor(e);this[r]=e&255;return r+1};function K(t,e,r,i){if(e<0)e=65535+e+1;for(var n=0,s=Math.min(t.length-r,2);n<s;++n){t[r+n]=(e&255<<8*(i?n:1-n))>>>(i?n:1-n)*8}}b.prototype.writeUInt16LE=function t(e,r,i){e=+e;r=r|0;if(!i)Z(this,e,r,2,65535,0);if(b.TYPED_ARRAY_SUPPORT){this[r]=e&255;this[r+1]=e>>>8}else{K(this,e,r,true)}return r+2};b.prototype.writeUInt16BE=function t(e,r,i){e=+e;r=r|0;if(!i)Z(this,e,r,2,65535,0);if(b.TYPED_ARRAY_SUPPORT){this[r]=e>>>8;this[r+1]=e&255}else{K(this,e,r,false)}return r+2};function X(t,e,r,i){if(e<0)e=4294967295+e+1;for(var n=0,s=Math.min(t.length-r,4);n<s;++n){t[r+n]=e>>>(i?n:3-n)*8&255}}b.prototype.writeUInt32LE=function t(e,r,i){e=+e;r=r|0;if(!i)Z(this,e,r,4,4294967295,0);if(b.TYPED_ARRAY_SUPPORT){this[r+3]=e>>>24;this[r+2]=e>>>16;this[r+1]=e>>>8;this[r]=e&255}else{X(this,e,r,true)}return r+4};b.prototype.writeUInt32BE=function t(e,r,i){e=+e;r=r|0;if(!i)Z(this,e,r,4,4294967295,0);if(b.TYPED_ARRAY_SUPPORT){this[r]=e>>>24;this[r+1]=e>>>16;this[r+2]=e>>>8;this[r+3]=e&255}else{X(this,e,r,false)}return r+4};b.prototype.writeIntLE=function t(e,r,i,n){e=+e;r=r|0;if(!n){var s=Math.pow(2,8*i-1);Z(this,e,r,i,s-1,-s)}var o=0;var a=1;var f=0;this[r]=e&255;while(++o<i&&(a*=256)){if(e<0&&f===0&&this[r+o-1]!==0){f=1}this[r+o]=(e/a>>0)-f&255}return r+i};b.prototype.writeIntBE=function t(e,r,i,n){e=+e;r=r|0;if(!n){var s=Math.pow(2,8*i-1);Z(this,e,r,i,s-1,-s)}var o=i-1;var a=1;var f=0;this[r+o]=e&255;while(--o>=0&&(a*=256)){if(e<0&&f===0&&this[r+o+1]!==0){f=1}this[r+o]=(e/a>>0)-f&255}return r+i};b.prototype.writeInt8=function t(e,r,i){e=+e;r=r|0;if(!i)Z(this,e,r,1,127,-128);if(!b.TYPED_ARRAY_SUPPORT)e=Math.floor(e);if(e<0)e=255+e+1;this[r]=e&255;return r+1};b.prototype.writeInt16LE=function t(e,r,i){e=+e;r=r|0;if(!i)Z(this,e,r,2,32767,-32768);if(b.TYPED_ARRAY_SUPPORT){this[r]=e&255;this[r+1]=e>>>8}else{K(this,e,r,true)}return r+2};b.prototype.writeInt16BE=function t(e,r,i){e=+e;r=r|0;if(!i)Z(this,e,r,2,32767,-32768);if(b.TYPED_ARRAY_SUPPORT){this[r]=e>>>8;this[r+1]=e&255}else{K(this,e,r,false)}return r+2};b.prototype.writeInt32LE=function t(e,r,i){e=+e;r=r|0;if(!i)Z(this,e,r,4,2147483647,-2147483648);if(b.TYPED_ARRAY_SUPPORT){this[r]=e&255;this[r+1]=e>>>8;this[r+2]=e>>>16;this[r+3]=e>>>24}else{X(this,e,r,true)}return r+4};b.prototype.writeInt32BE=function t(e,r,i){e=+e;r=r|0;if(!i)Z(this,e,r,4,2147483647,-2147483648);if(e<0)e=4294967295+e+1;if(b.TYPED_ARRAY_SUPPORT){this[r]=e>>>24;this[r+1]=e>>>16;this[r+2]=e>>>8;this[r+3]=e&255}else{X(this,e,r,false)}return r+4};function Q(t,e,r,i,n,s){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function tt(t,e,r,i,n){if(!n){Q(t,e,r,4)}d(t,e,r,i,23,4);return r+4}b.prototype.writeFloatLE=function t(e,r,i){return tt(this,e,r,true,i)};b.prototype.writeFloatBE=function t(e,r,i){return tt(this,e,r,false,i)};function et(t,e,r,i,n){if(!n){Q(t,e,r,8)}d(t,e,r,i,52,8);return r+8}b.prototype.writeDoubleLE=function t(e,r,i){return et(this,e,r,true,i)};b.prototype.writeDoubleBE=function t(e,r,i){return et(this,e,r,false,i)};b.prototype.copy=function t(e,r,i,n){if(!i)i=0;if(!n&&n!==0)n=this.length;if(r>=e.length)r=e.length;if(!r)r=0;if(n>0&&n<i)n=i;if(n===i)return 0;if(e.length===0||this.length===0)return 0;if(r<0){throw new RangeError("targetStart out of bounds")}if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");if(n>this.length)n=this.length;if(e.length-r<n-i){n=e.length-r+i}var s=n-i;var o;if(this===e&&i<r&&r<n){for(o=s-1;o>=0;--o){e[o+r]=this[o+i]}}else if(s<1e3||!b.TYPED_ARRAY_SUPPORT){for(o=0;o<s;++o){e[o+r]=this[o+i]}}else{Uint8Array.prototype.set.call(e,this.subarray(i,i+s),r)}return s};b.prototype.fill=function t(e,r,i,n){if(typeof e==="string"){if(typeof r==="string"){n=r;r=0;i=this.length}else if(typeof i==="string"){n=i;i=this.length}if(e.length===1){var s=e.charCodeAt(0);if(s<256){e=s}}if(n!==undefined&&typeof n!=="string"){throw new TypeError("encoding must be a string")}if(typeof n==="string"&&!b.isEncoding(n)){throw new TypeError("Unknown encoding: "+n)}}else if(typeof e==="number"){e=e&255}if(r<0||this.length<r||this.length<i){throw new RangeError("Out of range index")}if(i<=r){return this}r=r>>>0;i=i===undefined?this.length:i>>>0;if(!e)e=0;var o;if(typeof e==="number"){for(o=r;o<i;++o){this[o]=e}}else{var a=k(e)?e:ot(new b(e,n).toString());var f=a.length;for(o=0;o<i-r;++o){this[o+r]=a[o%f]}}return this};var rt=/[^+\/0-9A-Za-z-_]/g;function it(t){t=nt(t).replace(rt,"");if(t.length<2)return"";while(t.length%4!==0){t=t+"="}return t}function nt(t){if(t.trim)return t.trim();return t.replace(/^\s+|\s+$/g,"")}function st(t){if(t<16)return"0"+t.toString(16);return t.toString(16)}function ot(t,e){e=e||Infinity;var r;var i=t.length;var n=null;var s=[];for(var o=0;o<i;++o){r=t.charCodeAt(o);if(r>55295&&r<57344){if(!n){if(r>56319){if((e-=3)>-1)s.push(239,191,189);continue}else if(o+1===i){if((e-=3)>-1)s.push(239,191,189);continue}n=r;continue}if(r<56320){if((e-=3)>-1)s.push(239,191,189);n=r;continue}r=(n-55296<<10|r-56320)+65536}else if(n){if((e-=3)>-1)s.push(239,191,189)}n=null;if(r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else{throw new Error("Invalid code point")}}return s}function at(t){var e=[];for(var r=0;r<t.length;++r){e.push(t.charCodeAt(r)&255)}return e}function ft(t,e){var r,i,n;var s=[];for(var o=0;o<t.length;++o){if((e-=2)<0)break;r=t.charCodeAt(o);i=r>>8;n=r%256;s.push(n);s.push(i)}return s}function ut(t){return f(it(t))}function ct(t,e,r,i){for(var n=0;n<i;++n){if(n+r>=e.length||n>=t.length)break;e[n+r]=t[n]}return n}function ht(t){return t!==t}function lt(t){return t!=null&&(!!t._isBuffer||dt(t)||vt(t))}function dt(t){return!!t.constructor&&typeof t.constructor.isBuffer==="function"&&t.constructor.isBuffer(t)}function vt(t){return typeof t.readFloatLE==="function"&&typeof t.slice==="function"&&dt(t.slice(0,0))}var pt={exports:{}};var mt;function wt(){if(mt)return pt.exports;mt=1;var t=pt.exports={};var e;var r;function i(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){e=setTimeout}else{e=i}}catch(t){e=i}try{if(typeof clearTimeout==="function"){r=clearTimeout}else{r=n}}catch(t){r=n}})();function s(t){if(e===setTimeout){return setTimeout(t,0)}if((e===i||!e)&&setTimeout){e=setTimeout;return setTimeout(t,0)}try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}function o(t){if(r===clearTimeout){return clearTimeout(t)}if((r===n||!r)&&clearTimeout){r=clearTimeout;return clearTimeout(t)}try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}var a=[];var f=false;var u;var c=-1;function h(){if(!f||!u){return}f=false;if(u.length){a=u.concat(a)}else{c=-1}if(a.length){l()}}function l(){if(f){return}var t=s(h);f=true;var e=a.length;while(e){u=a;a=[];while(++c<e){if(u){u[c].run()}}c=-1;e=a.length}u=null;f=false;o(t)}t.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1){for(var r=1;r<arguments.length;r++){e[r-1]=arguments[r]}}a.push(new d(t,e));if(a.length===1&&!f){s(l)}};function d(t,e){this.fun=t;this.array=e}d.prototype.run=function(){this.fun.apply(null,this.array)};t.title="browser";t.browser=true;t.env={};t.argv=[];t.version="";t.versions={};function v(){}t.on=v;t.addListener=v;t.once=v;t.off=v;t.removeListener=v;t.removeAllListeners=v;t.emit=v;t.prependListener=v;t.prependOnceListener=v;t.listeners=function(t){return[]};t.binding=function(t){throw new Error("process.binding is not supported")};t.cwd=function(){return"/"};t.chdir=function(t){throw new Error("process.chdir is not supported")};t.umask=function(){return 0};return pt.exports}var yt=wt();var bt=e(yt);var gt={exports:{}};var _t;var Et;function Tt(){if(Et)return _t;Et=1;var t=1e3;var e=t*60;var r=e*60;var i=r*24;var n=i*7;var s=i*365.25;_t=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0){return o(t)}else if(r==="number"&&isFinite(t)){return e.long?f(t):a(t)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function o(o){o=String(o);if(o.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(!a){return}var f=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return f*s;case"weeks":case"week":case"w":return f*n;case"days":case"day":case"d":return f*i;case"hours":case"hour":case"hrs":case"hr":case"h":return f*r;case"minutes":case"minute":case"mins":case"min":case"m":return f*e;case"seconds":case"second":case"secs":case"sec":case"s":return f*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return undefined}}function a(n){var s=Math.abs(n);if(s>=i){return Math.round(n/i)+"d"}if(s>=r){return Math.round(n/r)+"h"}if(s>=e){return Math.round(n/e)+"m"}if(s>=t){return Math.round(n/t)+"s"}return n+"ms"}function f(n){var s=Math.abs(n);if(s>=i){return u(n,s,i,"day")}if(s>=r){return u(n,s,r,"hour")}if(s>=e){return u(n,s,e,"minute")}if(s>=t){return u(n,s,t,"second")}return n+" ms"}function u(t,e,r,i){var n=e>=r*1.5;return Math.round(t/r)+" "+i+(n?"s":"")}return _t}var xt;var St;function Rt(){if(St)return xt;St=1;function t(t){r.debug=r;r.default=r;r.coerce=f;r.disable=s;r.enable=n;r.enabled=o;r.humanize=Tt();r.destroy=u;Object.keys(t).forEach((e=>{r[e]=t[e]}));r.names=[];r.skips=[];r.formatters={};function e(t){let e=0;for(let r=0;r<t.length;r++){e=(e<<5)-e+t.charCodeAt(r);e|=0}return r.colors[Math.abs(e)%r.colors.length]}r.selectColor=e;function r(t){let e;let n=null;let s;let o;function a(...t){if(!a.enabled){return}const i=a;const n=Number(new Date);const s=n-(e||n);i.diff=s;i.prev=e;i.curr=n;e=n;t[0]=r.coerce(t[0]);if(typeof t[0]!=="string"){t.unshift("%O")}let o=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((e,n)=>{if(e==="%%"){return"%"}o++;const s=r.formatters[n];if(typeof s==="function"){const r=t[o];e=s.call(i,r);t.splice(o,1);o--}return e}));r.formatArgs.call(i,t);const f=i.log||r.log;f.apply(i,t)}a.namespace=t;a.useColors=r.useColors();a.color=r.selectColor(t);a.extend=i;a.destroy=r.destroy;Object.defineProperty(a,"enabled",{enumerable:true,configurable:false,get:()=>{if(n!==null){return n}if(s!==r.namespaces){s=r.namespaces;o=r.enabled(t)}return o},set:t=>{n=t}});if(typeof r.init==="function"){r.init(a)}return a}function i(t,e){const i=r(this.namespace+(typeof e==="undefined"?":":e)+t);i.log=this.log;return i}function n(t){r.save(t);r.namespaces=t;r.names=[];r.skips=[];let e;const i=(typeof t==="string"?t:"").split(/[\s,]+/);const n=i.length;for(e=0;e<n;e++){if(!i[e]){continue}t=i[e].replace(/\*/g,".*?");if(t[0]==="-"){r.skips.push(new RegExp("^"+t.slice(1)+"$"))}else{r.names.push(new RegExp("^"+t+"$"))}}}function s(){const t=[...r.names.map(a),...r.skips.map(a).map((t=>"-"+t))].join(",");r.enable("");return t}function o(t){if(t[t.length-1]==="*"){return true}let e;let i;for(e=0,i=r.skips.length;e<i;e++){if(r.skips[e].test(t)){return false}}for(e=0,i=r.names.length;e<i;e++){if(r.names[e].test(t)){return true}}return false}function a(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}function f(t){if(t instanceof Error){return t.stack||t.message}return t}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}r.enable(r.load());return r}xt=t;return xt}var Ct;function At(){if(Ct)return gt.exports;Ct=1;(function(t,e){e.formatArgs=i;e.save=n;e.load=s;e.useColors=r;e.storage=o();e.destroy=(()=>{let t=false;return()=>{if(!t){t=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let t;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(e){e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let i=0;let n=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{if(t==="%%"){return}i++;if(t==="%c"){n=i}}));e.splice(n,0,r)}e.log=console.debug||console.log||(()=>{});function n(t){try{if(t){e.storage.setItem("debug",t)}else{e.storage.removeItem("debug")}}catch(t){}}function s(){let t;try{t=e.storage.getItem("debug")}catch(t){}if(!t&&typeof bt!=="undefined"&&"env"in bt){t=bt.env.DEBUG}return t}function o(){try{return localStorage}catch(t){}}t.exports=Rt()(e);const{formatters:a}=t.exports;a.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}})(gt,gt.exports);return gt.exports}class kt{constructor(){this._dataLength=0;this._bufferLength=0;this._state=new Int32Array(4);this._buffer=new ArrayBuffer(68);this._buffer8=new Uint8Array(this._buffer,0,68);this._buffer32=new Uint32Array(this._buffer,0,17);this.start()}static hashStr(t,e=false){return this.onePassHasher.start().appendStr(t).end(e)}static hashAsciiStr(t,e=false){return this.onePassHasher.start().appendAsciiStr(t).end(e)}static _hex(t){const e=kt.hexChars;const r=kt.hexOut;let i;let n;let s;let o;for(o=0;o<4;o+=1){n=o*8;i=t[o];for(s=0;s<8;s+=2){r[n+1+s]=e.charAt(i&15);i>>>=4;r[n+0+s]=e.charAt(i&15);i>>>=4}}return r.join("")}static _md5cycle(t,e){let r=t[0];let i=t[1];let n=t[2];let s=t[3];r+=(i&n|~i&s)+e[0]-680876936|0;r=(r<<7|r>>>25)+i|0;s+=(r&i|~r&n)+e[1]-389564586|0;s=(s<<12|s>>>20)+r|0;n+=(s&r|~s&i)+e[2]+606105819|0;n=(n<<17|n>>>15)+s|0;i+=(n&s|~n&r)+e[3]-1044525330|0;i=(i<<22|i>>>10)+n|0;r+=(i&n|~i&s)+e[4]-176418897|0;r=(r<<7|r>>>25)+i|0;s+=(r&i|~r&n)+e[5]+1200080426|0;s=(s<<12|s>>>20)+r|0;n+=(s&r|~s&i)+e[6]-1473231341|0;n=(n<<17|n>>>15)+s|0;i+=(n&s|~n&r)+e[7]-45705983|0;i=(i<<22|i>>>10)+n|0;r+=(i&n|~i&s)+e[8]+1770035416|0;r=(r<<7|r>>>25)+i|0;s+=(r&i|~r&n)+e[9]-1958414417|0;s=(s<<12|s>>>20)+r|0;n+=(s&r|~s&i)+e[10]-42063|0;n=(n<<17|n>>>15)+s|0;i+=(n&s|~n&r)+e[11]-1990404162|0;i=(i<<22|i>>>10)+n|0;r+=(i&n|~i&s)+e[12]+1804603682|0;r=(r<<7|r>>>25)+i|0;s+=(r&i|~r&n)+e[13]-40341101|0;s=(s<<12|s>>>20)+r|0;n+=(s&r|~s&i)+e[14]-1502002290|0;n=(n<<17|n>>>15)+s|0;i+=(n&s|~n&r)+e[15]+1236535329|0;i=(i<<22|i>>>10)+n|0;r+=(i&s|n&~s)+e[1]-165796510|0;r=(r<<5|r>>>27)+i|0;s+=(r&n|i&~n)+e[6]-1069501632|0;s=(s<<9|s>>>23)+r|0;n+=(s&i|r&~i)+e[11]+643717713|0;n=(n<<14|n>>>18)+s|0;i+=(n&r|s&~r)+e[0]-373897302|0;i=(i<<20|i>>>12)+n|0;r+=(i&s|n&~s)+e[5]-701558691|0;r=(r<<5|r>>>27)+i|0;s+=(r&n|i&~n)+e[10]+38016083|0;s=(s<<9|s>>>23)+r|0;n+=(s&i|r&~i)+e[15]-660478335|0;n=(n<<14|n>>>18)+s|0;i+=(n&r|s&~r)+e[4]-405537848|0;i=(i<<20|i>>>12)+n|0;r+=(i&s|n&~s)+e[9]+568446438|0;r=(r<<5|r>>>27)+i|0;s+=(r&n|i&~n)+e[14]-1019803690|0;s=(s<<9|s>>>23)+r|0;n+=(s&i|r&~i)+e[3]-187363961|0;n=(n<<14|n>>>18)+s|0;i+=(n&r|s&~r)+e[8]+1163531501|0;i=(i<<20|i>>>12)+n|0;r+=(i&s|n&~s)+e[13]-1444681467|0;r=(r<<5|r>>>27)+i|0;s+=(r&n|i&~n)+e[2]-51403784|0;s=(s<<9|s>>>23)+r|0;n+=(s&i|r&~i)+e[7]+1735328473|0;n=(n<<14|n>>>18)+s|0;i+=(n&r|s&~r)+e[12]-1926607734|0;i=(i<<20|i>>>12)+n|0;r+=(i^n^s)+e[5]-378558|0;r=(r<<4|r>>>28)+i|0;s+=(r^i^n)+e[8]-2022574463|0;s=(s<<11|s>>>21)+r|0;n+=(s^r^i)+e[11]+1839030562|0;n=(n<<16|n>>>16)+s|0;i+=(n^s^r)+e[14]-35309556|0;i=(i<<23|i>>>9)+n|0;r+=(i^n^s)+e[1]-1530992060|0;r=(r<<4|r>>>28)+i|0;s+=(r^i^n)+e[4]+1272893353|0;s=(s<<11|s>>>21)+r|0;n+=(s^r^i)+e[7]-155497632|0;n=(n<<16|n>>>16)+s|0;i+=(n^s^r)+e[10]-1094730640|0;i=(i<<23|i>>>9)+n|0;r+=(i^n^s)+e[13]+681279174|0;r=(r<<4|r>>>28)+i|0;s+=(r^i^n)+e[0]-358537222|0;s=(s<<11|s>>>21)+r|0;n+=(s^r^i)+e[3]-722521979|0;n=(n<<16|n>>>16)+s|0;i+=(n^s^r)+e[6]+76029189|0;i=(i<<23|i>>>9)+n|0;r+=(i^n^s)+e[9]-640364487|0;r=(r<<4|r>>>28)+i|0;s+=(r^i^n)+e[12]-421815835|0;s=(s<<11|s>>>21)+r|0;n+=(s^r^i)+e[15]+530742520|0;n=(n<<16|n>>>16)+s|0;i+=(n^s^r)+e[2]-995338651|0;i=(i<<23|i>>>9)+n|0;r+=(n^(i|~s))+e[0]-198630844|0;r=(r<<6|r>>>26)+i|0;s+=(i^(r|~n))+e[7]+1126891415|0;s=(s<<10|s>>>22)+r|0;n+=(r^(s|~i))+e[14]-1416354905|0;n=(n<<15|n>>>17)+s|0;i+=(s^(n|~r))+e[5]-57434055|0;i=(i<<21|i>>>11)+n|0;r+=(n^(i|~s))+e[12]+1700485571|0;r=(r<<6|r>>>26)+i|0;s+=(i^(r|~n))+e[3]-1894986606|0;s=(s<<10|s>>>22)+r|0;n+=(r^(s|~i))+e[10]-1051523|0;n=(n<<15|n>>>17)+s|0;i+=(s^(n|~r))+e[1]-2054922799|0;i=(i<<21|i>>>11)+n|0;r+=(n^(i|~s))+e[8]+1873313359|0;r=(r<<6|r>>>26)+i|0;s+=(i^(r|~n))+e[15]-30611744|0;s=(s<<10|s>>>22)+r|0;n+=(r^(s|~i))+e[6]-1560198380|0;n=(n<<15|n>>>17)+s|0;i+=(s^(n|~r))+e[13]+1309151649|0;i=(i<<21|i>>>11)+n|0;r+=(n^(i|~s))+e[4]-145523070|0;r=(r<<6|r>>>26)+i|0;s+=(i^(r|~n))+e[11]-1120210379|0;s=(s<<10|s>>>22)+r|0;n+=(r^(s|~i))+e[2]+718787259|0;n=(n<<15|n>>>17)+s|0;i+=(s^(n|~r))+e[9]-343485551|0;i=(i<<21|i>>>11)+n|0;t[0]=r+t[0]|0;t[1]=i+t[1]|0;t[2]=n+t[2]|0;t[3]=s+t[3]|0}start(){this._dataLength=0;this._bufferLength=0;this._state.set(kt.stateIdentity);return this}appendStr(t){const e=this._buffer8;const r=this._buffer32;let i=this._bufferLength;let n;let s;for(s=0;s<t.length;s+=1){n=t.charCodeAt(s);if(n<128){e[i++]=n}else if(n<2048){e[i++]=(n>>>6)+192;e[i++]=n&63|128}else if(n<55296||n>56319){e[i++]=(n>>>12)+224;e[i++]=n>>>6&63|128;e[i++]=n&63|128}else{n=(n-55296)*1024+(t.charCodeAt(++s)-56320)+65536;if(n>1114111){throw new Error("Unicode standard supports code points up to U+10FFFF")}e[i++]=(n>>>18)+240;e[i++]=n>>>12&63|128;e[i++]=n>>>6&63|128;e[i++]=n&63|128}if(i>=64){this._dataLength+=64;kt._md5cycle(this._state,r);i-=64;r[0]=r[16]}}this._bufferLength=i;return this}appendAsciiStr(t){const e=this._buffer8;const r=this._buffer32;let i=this._bufferLength;let n;let s=0;for(;;){n=Math.min(t.length-s,64-i);while(n--){e[i++]=t.charCodeAt(s++)}if(i<64){break}this._dataLength+=64;kt._md5cycle(this._state,r);i=0}this._bufferLength=i;return this}appendByteArray(t){const e=this._buffer8;const r=this._buffer32;let i=this._bufferLength;let n;let s=0;for(;;){n=Math.min(t.length-s,64-i);while(n--){e[i++]=t[s++]}if(i<64){break}this._dataLength+=64;kt._md5cycle(this._state,r);i=0}this._bufferLength=i;return this}getState(){const t=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[t[0],t[1],t[2],t[3]]}}setState(t){const e=t.buffer;const r=t.state;const i=this._state;let n;this._dataLength=t.length;this._bufferLength=t.buflen;i[0]=r[0];i[1]=r[1];i[2]=r[2];i[3]=r[3];for(n=0;n<e.length;n+=1){this._buffer8[n]=e.charCodeAt(n)}}end(t=false){const e=this._bufferLength;const r=this._buffer8;const i=this._buffer32;const n=(e>>2)+1;this._dataLength+=e;const s=this._dataLength*8;r[e]=128;r[e+1]=r[e+2]=r[e+3]=0;i.set(kt.buffer32Identity.subarray(n),n);if(e>55){kt._md5cycle(this._state,i);i.set(kt.buffer32Identity)}if(s<=4294967295){i[14]=s}else{const t=s.toString(16).match(/(.*?)(.{0,8})$/);if(t===null){return}const e=parseInt(t[2],16);const r=parseInt(t[1],16)||0;i[14]=e;i[15]=r}kt._md5cycle(this._state,i);return t?this._state:kt._hex(this._state)}}kt.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]);kt.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);kt.hexChars="0123456789abcdef";kt.hexOut=[];kt.onePassHasher=new kt;if(kt.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592"){throw new Error("Md5 self test failed.")}class Mt{constructor(t,e=true,r=1048576){this._callback=t;this._async=e;this._partSize=r;this._configureReader()}hash(t){const e=this;e._blob=t;e._part=0;e._md5=new kt;e._processPart()}_fail(){this._callback({success:false,result:"data read failed"})}_hashData(t){let e=this;e._md5.appendByteArray(new Uint8Array(t.target.result));if(e._part*e._partSize>=e._blob.size){e._callback({success:true,result:e._md5.end()})}else{e._processPart()}}_processPart(){const t=this;let e=0;let r;t._part+=1;if(t._blob.size>t._partSize){e=t._part*t._partSize;if(e>t._blob.size){e=t._blob.size}r=t._blob.slice((t._part-1)*t._partSize,e)}else{r=t._blob}if(t._async){t._reader.readAsArrayBuffer(r)}else{setTimeout((()=>{try{t._hashData({target:{result:t._reader.readAsArrayBuffer(r)}})}catch(e){t._fail()}}),0)}}_configureReader(){const t=this;if(t._async){t._reader=new FileReader;t._reader.onload=t._hashData.bind(t);t._reader.onerror=t._fail.bind(t);t._reader.onabort=t._fail.bind(t)}else{t._reader=new FileReaderSync}}}class Bt{constructor(t,e){this._queue=[];this._ready=true;const r=this;if(Worker){r._hashWorker=new Worker(t,e);r._hashWorker.onmessage=r._recievedMessage.bind(r);r._hashWorker.onerror=t=>{r._ready=false;console.error("Hash worker failure",t)}}else{r._ready=false;console.error("Web Workers are not supported in this browser")}}hash(t){const e=this;let r;r=new Promise(((r,i)=>{e._queue.push({blob:t,resolve:r,reject:i});e._processNext()}));return r}terminate(){this._ready=false;this._hashWorker.terminate()}_processNext(){if(this._ready&&!this._processing&&this._queue.length>0){this._processing=this._queue.pop();this._hashWorker.postMessage(this._processing.blob)}}_recievedMessage(t){var e,r;const i=t.data;if(i.success){(e=this._processing)===null||e===void 0?void 0:e.resolve(i.result)}else{(r=this._processing)===null||r===void 0?void 0:r.reject(i.result)}this._processing=undefined;this._processNext()}}var jt=Object.freeze({__proto__:null,Md5:kt,Md5FileHasher:Mt,ParallelHasher:Bt});var It=r(jt);var Ot;var Ft;function $t(){if(Ft)return Ot;Ft=1;var t=Object.create;var e=Object.defineProperty;var r=Object.defineProperties;var i=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyDescriptors;var s=Object.getOwnPropertyNames;var o=Object.getOwnPropertySymbols;var a=Object.getPrototypeOf;var f=Object.prototype.hasOwnProperty;var u=Object.prototype.propertyIsEnumerable;var c=Math.pow;var h=(t,r,i)=>r in t?e(t,r,{enumerable:true,configurable:true,writable:true,value:i}):t[r]=i;var l=(t,e)=>{for(var r in e||(e={}))if(f.call(e,r))h(t,r,e[r]);if(o)for(var r of o(e)){if(u.call(e,r))h(t,r,e[r])}return t};var d=(t,e)=>r(t,n(e));var v=(t,e)=>function r(){return t&&(e=(0,t[s(t)[0]])(t=0)),e};var p=(t,e)=>function r(){return e||(0,t[s(t)[0]])((e={exports:{}}).exports,e),e.exports};var m=(t,r)=>{for(var i in r)e(t,i,{get:r[i],enumerable:true})};var w=(t,r,n,o)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let a of s(r))if(!f.call(t,a)&&a!==n)e(t,a,{get:()=>r[a],enumerable:!(o=i(r,a))||o.enumerable})}return t};var y=(r,i,n)=>(n=r!=null?t(a(r)):{},w(i||!r||!r.__esModule?e(n,"default",{value:r,enumerable:true}):n,r));var g=t=>w(e({},"__esModule",{value:true}),t);var _=(t,e,r)=>h(t,typeof e!=="symbol"?e+"":e,r);var E=(t,e,r)=>new Promise(((i,n)=>{var s=t=>{try{a(r.next(t))}catch(t){n(t)}};var o=t=>{try{a(r.throw(t))}catch(t){n(t)}};var a=t=>t.done?i(t.value):Promise.resolve(t.value).then(s,o);a((r=r.apply(t,e)).next())}));var T=p({"../node_modules/base64-js/index.js"(t){k();t.byteLength=f;t.toByteArray=c;t.fromByteArray=d;var e=[];var r=[];var i=typeof Uint8Array!=="undefined"?Uint8Array:Array;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(s=0,o=n.length;s<o;++s){e[s]=n[s];r[n.charCodeAt(s)]=s}var s;var o;r["-".charCodeAt(0)]=62;r["_".charCodeAt(0)]=63;function a(t){var e=t.length;if(e%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}var r=t.indexOf("=");if(r===-1)r=e;var i=r===e?0:4-r%4;return[r,i]}function f(t){var e=a(t);var r=e[0];var i=e[1];return(r+i)*3/4-i}function u(t,e,r){return(e+r)*3/4-r}function c(t){var e;var n=a(t);var s=n[0];var o=n[1];var f=new i(u(t,s,o));var c=0;var h=o>0?s-4:s;var l;for(l=0;l<h;l+=4){e=r[t.charCodeAt(l)]<<18|r[t.charCodeAt(l+1)]<<12|r[t.charCodeAt(l+2)]<<6|r[t.charCodeAt(l+3)];f[c++]=e>>16&255;f[c++]=e>>8&255;f[c++]=e&255}if(o===2){e=r[t.charCodeAt(l)]<<2|r[t.charCodeAt(l+1)]>>4;f[c++]=e&255}if(o===1){e=r[t.charCodeAt(l)]<<10|r[t.charCodeAt(l+1)]<<4|r[t.charCodeAt(l+2)]>>2;f[c++]=e>>8&255;f[c++]=e&255}return f}function h(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[t&63]}function l(t,e,r){var i;var n=[];for(var s=e;s<r;s+=3){i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(t[s+2]&255);n.push(h(i))}return n.join("")}function d(t){var r;var i=t.length;var n=i%3;var s=[];var o=16383;for(var a=0,f=i-n;a<f;a+=o){s.push(l(t,a,a+o>f?f:a+o))}if(n===1){r=t[i-1];s.push(e[r>>2]+e[r<<4&63]+"==")}else if(n===2){r=(t[i-2]<<8)+t[i-1];s.push(e[r>>10]+e[r>>4&63]+e[r<<2&63]+"=")}return s.join("")}}});var x=p({"../node_modules/ieee754/index.js"(t){k();t.read=function(t,e,r,i,n){var s,o;var a=n*8-i-1;var f=(1<<a)-1;var u=f>>1;var c=-7;var h=r?n-1:0;var l=r?-1:1;var d=t[e+h];h+=l;s=d&(1<<-c)-1;d>>=-c;c+=a;for(;c>0;s=s*256+t[e+h],h+=l,c-=8){}o=s&(1<<-c)-1;s>>=-c;c+=i;for(;c>0;o=o*256+t[e+h],h+=l,c-=8){}if(s===0){s=1-u}else if(s===f){return o?NaN:(d?-1:1)*Infinity}else{o=o+Math.pow(2,i);s=s-u}return(d?-1:1)*o*Math.pow(2,s-i)};t.write=function(t,e,r,i,n,s){var o,a,f;var u=s*8-n-1;var c=(1<<u)-1;var h=c>>1;var l=n===23?Math.pow(2,-24)-Math.pow(2,-77):0;var d=i?0:s-1;var v=i?1:-1;var p=e<0||e===0&&1/e<0?1:0;e=Math.abs(e);if(isNaN(e)||e===Infinity){a=isNaN(e)?1:0;o=c}else{o=Math.floor(Math.log(e)/Math.LN2);if(e*(f=Math.pow(2,-o))<1){o--;f*=2}if(o+h>=1){e+=l/f}else{e+=l*Math.pow(2,1-h)}if(e*f>=2){o++;f/=2}if(o+h>=c){a=0;o=c}else if(o+h>=1){a=(e*f-1)*Math.pow(2,n);o=o+h}else{a=e*Math.pow(2,h-1)*Math.pow(2,n);o=0}}for(;n>=8;t[r+d]=a&255,d+=v,a/=256,n-=8){}o=o<<n|a;u+=n;for(;u>0;t[r+d]=o&255,d+=v,o/=256,u-=8){}t[r+d-v]|=p*128}}});var S=p({"../node_modules/buffer/index.js"(t){k();var e=T();var r=x();var i=typeof Symbol==="function"&&typeof Symbol["for"]==="function"?Symbol["for"]("nodejs.util.inspect.custom"):null;t.Buffer=a;t.SlowBuffer=b;t.INSPECT_MAX_BYTES=50;var n=2147483647;t.kMaxLength=n;a.TYPED_ARRAY_SUPPORT=s();if(!a.TYPED_ARRAY_SUPPORT&&typeof console!=="undefined"&&typeof console.error==="function"){console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.")}function s(){try{const t=new Uint8Array(1);const e={foo:function(){return 42}};Object.setPrototypeOf(e,Uint8Array.prototype);Object.setPrototypeOf(t,e);return t.foo()===42}catch(t){return false}}Object.defineProperty(a.prototype,"parent",{enumerable:true,get:function(){if(!a.isBuffer(this))return void 0;return this.buffer}});Object.defineProperty(a.prototype,"offset",{enumerable:true,get:function(){if(!a.isBuffer(this))return void 0;return this.byteOffset}});function o(t){if(t>n){throw new RangeError('The value "'+t+'" is invalid for option "size"')}const e=new Uint8Array(t);Object.setPrototypeOf(e,a.prototype);return e}function a(t,e,r){if(typeof t==="number"){if(typeof e==="string"){throw new TypeError('The "string" argument must be of type string. Received type number')}return l(t)}return f(t,e,r)}a.poolSize=8192;function f(t,e,r){if(typeof t==="string"){return d(t,e)}if(ArrayBuffer.isView(t)){return p(t)}if(t==null){throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}if(ft(t,ArrayBuffer)||t&&ft(t.buffer,ArrayBuffer)){return m(t,e,r)}if(typeof SharedArrayBuffer!=="undefined"&&(ft(t,SharedArrayBuffer)||t&&ft(t.buffer,SharedArrayBuffer))){return m(t,e,r)}if(typeof t==="number"){throw new TypeError('The "value" argument must not be of type number. Received type number')}const i=t.valueOf&&t.valueOf();if(i!=null&&i!==t){return a.from(i,e,r)}const n=w(t);if(n)return n;if(typeof Symbol!=="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]==="function"){return a.from(t[Symbol.toPrimitive]("string"),e,r)}throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}a.from=function(t,e,r){return f(t,e,r)};Object.setPrototypeOf(a.prototype,Uint8Array.prototype);Object.setPrototypeOf(a,Uint8Array);function u(t){if(typeof t!=="number"){throw new TypeError('"size" argument must be of type number')}else if(t<0){throw new RangeError('The value "'+t+'" is invalid for option "size"')}}function h(t,e,r){u(t);if(t<=0){return o(t)}if(e!==void 0){return typeof r==="string"?o(t).fill(e,r):o(t).fill(e)}return o(t)}a.alloc=function(t,e,r){return h(t,e,r)};function l(t){u(t);return o(t<0?0:y(t)|0)}a.allocUnsafe=function(t){return l(t)};a.allocUnsafeSlow=function(t){return l(t)};function d(t,e){if(typeof e!=="string"||e===""){e="utf8"}if(!a.isEncoding(e)){throw new TypeError("Unknown encoding: "+e)}const r=g(t,e)|0;let i=o(r);const n=i.write(t,e);if(n!==r){i=i.slice(0,n)}return i}function v(t){const e=t.length<0?0:y(t.length)|0;const r=o(e);for(let i=0;i<e;i+=1){r[i]=t[i]&255}return r}function p(t){if(ft(t,Uint8Array)){const e=new Uint8Array(t);return m(e.buffer,e.byteOffset,e.byteLength)}return v(t)}function m(t,e,r){if(e<0||t.byteLength<e){throw new RangeError('"offset" is outside of buffer bounds')}if(t.byteLength<e+(r||0)){throw new RangeError('"length" is outside of buffer bounds')}let i;if(e===void 0&&r===void 0){i=new Uint8Array(t)}else if(r===void 0){i=new Uint8Array(t,e)}else{i=new Uint8Array(t,e,r)}Object.setPrototypeOf(i,a.prototype);return i}function w(t){if(a.isBuffer(t)){const e=y(t.length)|0;const r=o(e);if(r.length===0){return r}t.copy(r,0,0,e);return r}if(t.length!==void 0){if(typeof t.length!=="number"||ut(t.length)){return o(0)}return v(t)}if(t.type==="Buffer"&&Array.isArray(t.data)){return v(t.data)}}function y(t){if(t>=n){throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes")}return t|0}function b(t){if(+t!=t){t=0}return a.alloc(+t)}a.isBuffer=function t(e){return e!=null&&e._isBuffer===true&&e!==a.prototype};a.compare=function t(e,r){if(ft(e,Uint8Array))e=a.from(e,e.offset,e.byteLength);if(ft(r,Uint8Array))r=a.from(r,r.offset,r.byteLength);if(!a.isBuffer(e)||!a.isBuffer(r)){throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array')}if(e===r)return 0;let i=e.length;let n=r.length;for(let t=0,s=Math.min(i,n);t<s;++t){if(e[t]!==r[t]){i=e[t];n=r[t];break}}if(i<n)return-1;if(n<i)return 1;return 0};a.isEncoding=function t(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 true;default:return false}};a.concat=function t(e,r){if(!Array.isArray(e)){throw new TypeError('"list" argument must be an Array of Buffers')}if(e.length===0){return a.alloc(0)}let i;if(r===void 0){r=0;for(i=0;i<e.length;++i){r+=e[i].length}}const n=a.allocUnsafe(r);let s=0;for(i=0;i<e.length;++i){let t=e[i];if(ft(t,Uint8Array)){if(s+t.length>n.length){if(!a.isBuffer(t))t=a.from(t);t.copy(n,s)}else{Uint8Array.prototype.set.call(n,t,s)}}else if(!a.isBuffer(t)){throw new TypeError('"list" argument must be an Array of Buffers')}else{t.copy(n,s)}s+=t.length}return n};function g(t,e){if(a.isBuffer(t)){return t.length}if(ArrayBuffer.isView(t)||ft(t,ArrayBuffer)){return t.byteLength}if(typeof t!=="string"){throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Recei