UNPKG

@quick-game/cli

Version:

Command line interface for rapid qg development

10 lines 1.83 MB
/** * Lighthouse v10.4.0-55-gcd3d3a4c7 (Aug 03 2023) * * Automated auditing, performance metrics, and best practices for the web. * * @homepage https://github.com/GoogleChrome/lighthouse#readme * @author The Lighthouse Authors * @license Apache-2.0 */ "use strict";(()=>{var a7=Object.create;var Kc=Object.defineProperty;var o7=Object.getOwnPropertyDescriptor;var i7=Object.getOwnPropertyNames;var s7=Object.getPrototypeOf,c7=Object.prototype.hasOwnProperty;var s=(t,e)=>Kc(t,"name",{value:e,configurable:!0});var v=(t,e)=>()=>(t&&(e=t(t=0)),e);var L=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),S=(t,e)=>{for(var n in e)Kc(t,n,{get:e[n],enumerable:!0})},KS=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of i7(e))!c7.call(t,a)&&a!==n&&Kc(t,a,{get:()=>e[a],enumerable:!(r=o7(e,a))||r.enumerable});return t};var zt=(t,e,n)=>(n=t!=null?a7(s7(t)):{},KS(e||!t||!t.__esModule?Kc(n,"default",{value:t,enumerable:!0}):n,t)),u7=t=>KS(Kc({},"__esModule",{value:!0}),t);function JS(){throw new Error("setTimeout has not been defined")}function XS(){throw new Error("clearTimeout has not been defined")}function ZS(t){if(Pa===setTimeout)return setTimeout(t,0);if((Pa===JS||!Pa)&&setTimeout)return Pa=setTimeout,setTimeout(t,0);try{return Pa(t,0)}catch{try{return Pa.call(null,t,0)}catch{return Pa.call(this,t,0)}}}function l7(t){if(Oa===clearTimeout)return clearTimeout(t);if((Oa===XS||!Oa)&&clearTimeout)return Oa=clearTimeout,clearTimeout(t);try{return Oa(t)}catch{try{return Oa.call(null,t)}catch{return Oa.call(this,t)}}}function d7(){!Ui||!Oo||(Ui=!1,Oo.length?aa=Oo.concat(aa):Rm=-1,aa.length&&QS())}function QS(){if(!Ui){var t=ZS(d7);Ui=!0;for(var e=aa.length;e;){for(Oo=aa,aa=[];++Rm<e;)Oo&&Oo[Rm].run();Rm=-1,e=aa.length}Oo=null,Ui=!1,l7(t)}}function mn(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];aa.push(new ex(t,e)),aa.length===1&&!Ui&&ZS(QS)}function ex(t,e){this.fun=t,this.array=e}function Uo(){}function F7(t){throw new Error("process.binding is not supported")}function R7(){return"/"}function _7(t){throw new Error("process.chdir is not supported")}function k7(){return 0}function M7(t){var e=I7.call(Oi)*.001,n=Math.floor(e),r=Math.floor(e%1*1e9);return t&&(n=n-t[0],r=r-t[1],r<0&&(n--,r+=1e9)),[n,r]}function L7(){var t=new Date,e=t-N7;return e/1e3}var Pa,Oa,aa,Ui,Oo,Rm,m7,p7,f7,g7,h7,y7,v7,b7,w7,D7,E7,T7,S7,x7,C7,A7,Oi,I7,N7,pn,Ua=v(()=>{d();s(JS,"defaultSetTimout");s(XS,"defaultClearTimeout");Pa=JS,Oa=XS;typeof globalThis.setTimeout=="function"&&(Pa=setTimeout);typeof globalThis.clearTimeout=="function"&&(Oa=clearTimeout);s(ZS,"runTimeout");s(l7,"runClearTimeout");aa=[],Ui=!1,Rm=-1;s(d7,"cleanUpNextTick");s(QS,"drainQueue");s(mn,"nextTick");s(ex,"Item");ex.prototype.run=function(){this.fun.apply(null,this.array)};m7="browser",p7="browser",f7=!0,g7={},h7=[],y7="",v7={},b7={},w7={};s(Uo,"noop");D7=Uo,E7=Uo,T7=Uo,S7=Uo,x7=Uo,C7=Uo,A7=Uo;s(F7,"binding");s(R7,"cwd");s(_7,"chdir");s(k7,"umask");Oi=globalThis.performance||{},I7=Oi.now||Oi.mozNow||Oi.msNow||Oi.oNow||Oi.webkitNow||function(){return new Date().getTime()};s(M7,"hrtime");N7=new Date;s(L7,"uptime");pn={nextTick:mn,title:m7,browser:f7,env:g7,argv:h7,version:y7,versions:v7,on:D7,addListener:E7,once:T7,off:S7,removeListener:x7,removeAllListeners:C7,emit:A7,binding:F7,cwd:R7,chdir:_7,umask:k7,hrtime:M7,platform:p7,release:b7,config:w7,uptime:L7}});var d=v(()=>{"use strict";Ua();globalThis.process=pn});function ax(){zf=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=t.length;e<n;++e)xr[e]=t[e],Xn[t.charCodeAt(e)]=e;Xn["-".charCodeAt(0)]=62,Xn["_".charCodeAt(0)]=63}function O7(t){zf||ax();var e,n,r,a,o,i,c=t.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=t[c-2]==="="?2:t[c-1]==="="?1:0,i=new P7(c*3/4-o),r=o>0?c-4:c;var u=0;for(e=0,n=0;e<r;e+=4,n+=3)a=Xn[t.charCodeAt(e)]<<18|Xn[t.charCodeAt(e+1)]<<12|Xn[t.charCodeAt(e+2)]<<6|Xn[t.charCodeAt(e+3)],i[u++]=a>>16&255,i[u++]=a>>8&255,i[u++]=a&255;return o===2?(a=Xn[t.charCodeAt(e)]<<2|Xn[t.charCodeAt(e+1)]>>4,i[u++]=a&255):o===1&&(a=Xn[t.charCodeAt(e)]<<10|Xn[t.charCodeAt(e+1)]<<4|Xn[t.charCodeAt(e+2)]>>2,i[u++]=a>>8&255,i[u++]=a&255),i}function U7(t){return xr[t>>18&63]+xr[t>>12&63]+xr[t>>6&63]+xr[t&63]}function B7(t,e,n){for(var r,a=[],o=e;o<n;o+=3)r=(t[o]<<16)+(t[o+1]<<8)+t[o+2],a.push(U7(r));return a.join("")}function tx(t){zf||ax();for(var e,n=t.length,r=n%3,a="",o=[],i=16383,c=0,u=n-r;c<u;c+=i)o.push(B7(t,c,c+i>u?u:c+i));return r===1?(e=t[n-1],a+=xr[e>>2],a+=xr[e<<4&63],a+="=="):r===2&&(e=(t[n-2]<<8)+t[n-1],a+=xr[e>>10],a+=xr[e>>4&63],a+=xr[e<<2&63],a+="="),o.push(a),o.join("")}function Im(t,e,n,r,a){var o,i,c=a*8-r-1,u=(1<<c)-1,l=u>>1,m=-7,p=n?a-1:0,g=n?-1:1,f=t[e+p];for(p+=g,o=f&(1<<-m)-1,f>>=-m,m+=c;m>0;o=o*256+t[e+p],p+=g,m-=8);for(i=o&(1<<-m)-1,o>>=-m,m+=r;m>0;i=i*256+t[e+p],p+=g,m-=8);if(o===0)o=1-l;else{if(o===u)return i?NaN:(f?-1:1)*(1/0);i=i+Math.pow(2,r),o=o-l}return(f?-1:1)*i*Math.pow(2,o-r)}function ox(t,e,n,r,a,o){var i,c,u,l=o*8-a-1,m=(1<<l)-1,p=m>>1,g=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,y=r?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,i=m):(i=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-i))<1&&(i--,u*=2),i+p>=1?e+=g/u:e+=g*Math.pow(2,1-p),e*u>=2&&(i++,u/=2),i+p>=m?(c=0,i=m):i+p>=1?(c=(e*u-1)*Math.pow(2,a),i=i+p):(c=e*Math.pow(2,p-1)*Math.pow(2,a),i=0));a>=8;t[n+f]=c&255,f+=y,c/=256,a-=8);for(i=i<<a|c,l+=a;l>0;t[n+f]=i&255,f+=y,i/=256,l-=8);t[n+f-y]|=b*128}function _m(){return H.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function oa(t,e){if(_m()<e)throw new RangeError("Invalid typed array length");return H.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=H.prototype):(t===null&&(t=new H(e)),t.length=e),t}function H(t,e,n){if(!H.TYPED_ARRAY_SUPPORT&&!(this instanceof H))return new H(t,e,n);if(typeof t=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return Hf(this,t)}return sx(this,t,e,n)}function sx(t,e,n,r){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?G7(t,e,n,r):typeof e=="string"?H7(t,e,n):W7(t,e)}function cx(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function z7(t,e,n,r){return cx(e),e<=0?oa(t,e):n!==void 0?typeof r=="string"?oa(t,e).fill(n,r):oa(t,e).fill(n):oa(t,e)}function Hf(t,e){if(cx(e),t=oa(t,e<0?0:Gf(e)|0),!H.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function H7(t,e,n){if((typeof n!="string"||n==="")&&(n="utf8"),!H.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=ux(e,n)|0;t=oa(t,r);var a=t.write(e,n);return a!==r&&(t=t.slice(0,a)),t}function qf(t,e){var n=e.length<0?0:Gf(e.length)|0;t=oa(t,n);for(var r=0;r<n;r+=1)t[r]=e[r]&255;return t}function G7(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return n===void 0&&r===void 0?e=new Uint8Array(e):r===void 0?e=new Uint8Array(e,n):e=new Uint8Array(e,n,r),H.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=H.prototype):t=qf(t,e),t}function W7(t,e){if(Cr(e)){var n=Gf(e.length)|0;return t=oa(t,n),t.length===0||e.copy(t,0,0,n),t}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||l9(e.length)?oa(t,0):qf(t,e);if(e.type==="Buffer"&&ix(e.data))return qf(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Gf(t){if(t>=_m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_m().toString(16)+" bytes");return t|0}function Cr(t){return!!(t!=null&&t._isBuffer)}function ux(t,e){if(Cr(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var n=t.length;if(n===0)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return km(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return hx(t).length;default:if(r)return km(t).length;e=(""+e).toLowerCase(),r=!0}}function V7(t,e,n){var r=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,e>>>=0,n<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return n9(this,e,n);case"utf8":case"utf-8":return mx(this,e,n);case"ascii":return e9(this,e,n);case"latin1":case"binary":return t9(this,e,n);case"base64":return Z7(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r9(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function Bo(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function lx(t,e,n,r,a){if(t.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(a)return-1;n=t.length-1}else if(n<0)if(a)n=0;else return-1;if(typeof e=="string"&&(e=H.from(e,r)),Cr(e))return e.length===0?-1:nx(t,e,n,r,a);if(typeof e=="number")return e=e&255,H.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):nx(t,[e],n,r,a);throw new TypeError("val must be string, number or Buffer")}function nx(t,e,n,r,a){var o=1,i=t.length,c=e.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,i/=2,c/=2,n/=2}function u(f,y){return o===1?f[y]:f.readUInt16BE(y*o)}s(u,"read");var l;if(a){var m=-1;for(l=n;l<i;l++)if(u(t,l)===u(e,m===-1?0:l-m)){if(m===-1&&(m=l),l-m+1===c)return m*o}else m!==-1&&(l-=l-m),m=-1}else for(n+c>i&&(n=i-c),l=n;l>=0;l--){for(var p=!0,g=0;g<c;g++)if(u(t,l+g)!==u(e,g)){p=!1;break}if(p)return l}return-1}function $7(t,e,n,r){n=Number(n)||0;var a=t.length-n;r?(r=Number(r),r>a&&(r=a)):r=a;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var i=0;i<r;++i){var c=parseInt(e.substr(i*2,2),16);if(isNaN(c))return i;t[n+i]=c}return i}function Y7(t,e,n,r){return Lm(km(e,t.length-n),t,n,r)}function dx(t,e,n,r){return Lm(c9(e),t,n,r)}function K7(t,e,n,r){return dx(t,e,n,r)}function J7(t,e,n,r){return Lm(hx(e),t,n,r)}function X7(t,e,n,r){return Lm(u9(e,t.length-n),t,n,r)}function Z7(t,e,n){return e===0&&n===t.length?tx(t):tx(t.slice(e,n))}function mx(t,e,n){n=Math.min(t.length,n);for(var r=[],a=e;a<n;){var o=t[a],i=null,c=o>239?4:o>223?3:o>191?2:1;if(a+c<=n){var u,l,m,p;switch(c){case 1:o<128&&(i=o);break;case 2:u=t[a+1],(u&192)===128&&(p=(o&31)<<6|u&63,p>127&&(i=p));break;case 3:u=t[a+1],l=t[a+2],(u&192)===128&&(l&192)===128&&(p=(o&15)<<12|(u&63)<<6|l&63,p>2047&&(p<55296||p>57343)&&(i=p));break;case 4:u=t[a+1],l=t[a+2],m=t[a+3],(u&192)===128&&(l&192)===128&&(m&192)===128&&(p=(o&15)<<18|(u&63)<<12|(l&63)<<6|m&63,p>65535&&p<1114112&&(i=p))}}i===null?(i=65533,c=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|i&1023),r.push(i),a+=c}return Q7(r)}function Q7(t){var e=t.length;if(e<=rx)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=rx));return n}function e9(t,e,n){var r="";n=Math.min(t.length,n);for(var a=e;a<n;++a)r+=String.fromCharCode(t[a]&127);return r}function t9(t,e,n){var r="";n=Math.min(t.length,n);for(var a=e;a<n;++a)r+=String.fromCharCode(t[a]);return r}function n9(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var a="",o=e;o<n;++o)a+=s9(t[o]);return a}function r9(t,e,n){for(var r=t.slice(e,n),a="",o=0;o<r.length;o+=2)a+=String.fromCharCode(r[o]+r[o+1]*256);return a}function rn(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function On(t,e,n,r,a,o){if(!Cr(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function Mm(t,e,n,r){e<0&&(e=65535+e+1);for(var a=0,o=Math.min(t.length-n,2);a<o;++a)t[n+a]=(e&255<<8*(r?a:1-a))>>>(r?a:1-a)*8}function Nm(t,e,n,r){e<0&&(e=4294967295+e+1);for(var a=0,o=Math.min(t.length-n,4);a<o;++a)t[n+a]=e>>>(r?a:3-a)*8&255}function px(t,e,n,r,a,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function fx(t,e,n,r,a){return a||px(t,e,n,4),ox(t,e,n,r,23,4),n+4}function gx(t,e,n,r,a){return a||px(t,e,n,8),ox(t,e,n,r,52,8),n+8}function o9(t){if(t=i9(t).replace(a9,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function i9(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function s9(t){return t<16?"0"+t.toString(16):t.toString(16)}function km(t,e){e=e||1/0;for(var n,r=t.length,a=null,o=[],i=0;i<r;++i){if(n=t.charCodeAt(i),n>55295&&n<57344){if(!a){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(i+1===r){(e-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),a=n;continue}n=(a-55296<<10|n-56320)+65536}else a&&(e-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,n&63|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return o}function c9(t){for(var e=[],n=0;n<t.length;++n)e.push(t.charCodeAt(n)&255);return e}function u9(t,e){for(var n,r,a,o=[],i=0;i<t.length&&!((e-=2)<0);++i)n=t.charCodeAt(i),r=n>>8,a=n%256,o.push(a),o.push(r);return o}function hx(t){return O7(o9(t))}function Lm(t,e,n,r){for(var a=0;a<r&&!(a+n>=e.length||a>=t.length);++a)e[a+n]=t[a];return a}function l9(t){return t!==t}function d9(t){return t!=null&&(!!t._isBuffer||yx(t)||m9(t))}function yx(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function m9(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&yx(t.slice(0,0))}var xr,Xn,P7,zf,j7,ix,q7,oce,rx,a9,Bi=v(()=>{d();xr=[],Xn=[],P7=typeof Uint8Array<"u"?Uint8Array:Array,zf=!1;s(ax,"init");s(O7,"toByteArray");s(U7,"tripletToBase64");s(B7,"encodeChunk");s(tx,"fromByteArray");s(Im,"read");s(ox,"write");j7={}.toString,ix=Array.isArray||function(t){return j7.call(t)=="[object Array]"};q7=50;H.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;oce=_m();s(_m,"kMaxLength");s(oa,"createBuffer");s(H,"Buffer");H.poolSize=8192;H._augment=function(t){return t.__proto__=H.prototype,t};s(sx,"from");H.from=function(t,e,n){return sx(null,t,e,n)};H.TYPED_ARRAY_SUPPORT&&(H.prototype.__proto__=Uint8Array.prototype,H.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&H[Symbol.species]);s(cx,"assertSize");s(z7,"alloc");H.alloc=function(t,e,n){return z7(null,t,e,n)};s(Hf,"allocUnsafe");H.allocUnsafe=function(t){return Hf(null,t)};H.allocUnsafeSlow=function(t){return Hf(null,t)};s(H7,"fromString");s(qf,"fromArrayLike");s(G7,"fromArrayBuffer");s(W7,"fromObject");s(Gf,"checked");H.isBuffer=d9;s(Cr,"internalIsBuffer");H.compare=s(function(e,n){if(!Cr(e)||!Cr(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var r=e.length,a=n.length,o=0,i=Math.min(r,a);o<i;++o)if(e[o]!==n[o]){r=e[o],a=n[o];break}return r<a?-1:a<r?1:0},"compare");H.isEncoding=s(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}},"isEncoding");H.concat=s(function(e,n){if(!ix(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return H.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<e.length;++r)n+=e[r].length;var a=H.allocUnsafe(n),o=0;for(r=0;r<e.length;++r){var i=e[r];if(!Cr(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(a,o),o+=i.length}return a},"concat");s(ux,"byteLength");H.byteLength=ux;s(V7,"slowToString");H.prototype._isBuffer=!0;s(Bo,"swap");H.prototype.swap16=s(function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)Bo(this,n,n+1);return this},"swap16");H.prototype.swap32=s(function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4)Bo(this,n,n+3),Bo(this,n+1,n+2);return this},"swap32");H.prototype.swap64=s(function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8)Bo(this,n,n+7),Bo(this,n+1,n+6),Bo(this,n+2,n+5),Bo(this,n+3,n+4);return this},"swap64");H.prototype.toString=s(function(){var e=this.length|0;return e===0?"":arguments.length===0?mx(this,0,e):V7.apply(this,arguments)},"toString");H.prototype.equals=s(function(e){if(!Cr(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:H.compare(this,e)===0},"equals");H.prototype.inspect=s(function(){var e="",n=q7;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},"inspect");H.prototype.compare=s(function(e,n,r,a,o){if(!Cr(e))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),r===void 0&&(r=e?e.length:0),a===void 0&&(a=0),o===void 0&&(o=this.length),n<0||r>e.length||a<0||o>this.length)throw new RangeError("out of range index");if(a>=o&&n>=r)return 0;if(a>=o)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,a>>>=0,o>>>=0,this===e)return 0;for(var i=o-a,c=r-n,u=Math.min(i,c),l=this.slice(a,o),m=e.slice(n,r),p=0;p<u;++p)if(l[p]!==m[p]){i=l[p],c=m[p];break}return i<c?-1:c<i?1:0},"compare");s(lx,"bidirectionalIndexOf");s(nx,"arrayIndexOf");H.prototype.includes=s(function(e,n,r){return this.indexOf(e,n,r)!==-1},"includes");H.prototype.indexOf=s(function(e,n,r){return lx(this,e,n,r,!0)},"indexOf");H.prototype.lastIndexOf=s(function(e,n,r){return lx(this,e,n,r,!1)},"lastIndexOf");s($7,"hexWrite");s(Y7,"utf8Write");s(dx,"asciiWrite");s(K7,"latin1Write");s(J7,"base64Write");s(X7,"ucs2Write");H.prototype.write=s(function(e,n,r,a){if(n===void 0)a="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")a=n,r=this.length,n=0;else if(isFinite(n))n=n|0,isFinite(r)?(r=r|0,a===void 0&&(a="utf8")):(a=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-n;if((r===void 0||r>o)&&(r=o),e.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var i=!1;;)switch(a){case"hex":return $7(this,e,n,r);case"utf8":case"utf-8":return Y7(this,e,n,r);case"ascii":return dx(this,e,n,r);case"latin1":case"binary":return K7(this,e,n,r);case"base64":return J7(this,e,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X7(this,e,n,r);default:if(i)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),i=!0}},"write");H.prototype.toJSON=s(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");s(Z7,"base64Slice");s(mx,"utf8Slice");rx=4096;s(Q7,"decodeCodePointsArray");s(e9,"asciiSlice");s(t9,"latin1Slice");s(n9,"hexSlice");s(r9,"utf16leSlice");H.prototype.slice=s(function(e,n){var r=this.length;e=~~e,n=n===void 0?r:~~n,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<e&&(n=e);var a;if(H.TYPED_ARRAY_SUPPORT)a=this.subarray(e,n),a.__proto__=H.prototype;else{var o=n-e;a=new H(o,void 0);for(var i=0;i<o;++i)a[i]=this[i+e]}return a},"slice");s(rn,"checkOffset");H.prototype.readUIntLE=s(function(e,n,r){e=e|0,n=n|0,r||rn(e,n,this.length);for(var a=this[e],o=1,i=0;++i<n&&(o*=256);)a+=this[e+i]*o;return a},"readUIntLE");H.prototype.readUIntBE=s(function(e,n,r){e=e|0,n=n|0,r||rn(e,n,this.length);for(var a=this[e+--n],o=1;n>0&&(o*=256);)a+=this[e+--n]*o;return a},"readUIntBE");H.prototype.readUInt8=s(function(e,n){return n||rn(e,1,this.length),this[e]},"readUInt8");H.prototype.readUInt16LE=s(function(e,n){return n||rn(e,2,this.length),this[e]|this[e+1]<<8},"readUInt16LE");H.prototype.readUInt16BE=s(function(e,n){return n||rn(e,2,this.length),this[e]<<8|this[e+1]},"readUInt16BE");H.prototype.readUInt32LE=s(function(e,n){return n||rn(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},"readUInt32LE");H.prototype.readUInt32BE=s(function(e,n){return n||rn(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},"readUInt32BE");H.prototype.readIntLE=s(function(e,n,r){e=e|0,n=n|0,r||rn(e,n,this.length);for(var a=this[e],o=1,i=0;++i<n&&(o*=256);)a+=this[e+i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*n)),a},"readIntLE");H.prototype.readIntBE=s(function(e,n,r){e=e|0,n=n|0,r||rn(e,n,this.length);for(var a=n,o=1,i=this[e+--a];a>0&&(o*=256);)i+=this[e+--a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*n)),i},"readIntBE");H.prototype.readInt8=s(function(e,n){return n||rn(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},"readInt8");H.prototype.readInt16LE=s(function(e,n){n||rn(e,2,this.length);var r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r},"readInt16LE");H.prototype.readInt16BE=s(function(e,n){n||rn(e,2,this.length);var r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r},"readInt16BE");H.prototype.readInt32LE=s(function(e,n){return n||rn(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},"readInt32LE");H.prototype.readInt32BE=s(function(e,n){return n||rn(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},"readInt32BE");H.prototype.readFloatLE=s(function(e,n){return n||rn(e,4,this.length),Im(this,e,!0,23,4)},"readFloatLE");H.prototype.readFloatBE=s(function(e,n){return n||rn(e,4,this.length),Im(this,e,!1,23,4)},"readFloatBE");H.prototype.readDoubleLE=s(function(e,n){return n||rn(e,8,this.length),Im(this,e,!0,52,8)},"readDoubleLE");H.prototype.readDoubleBE=s(function(e,n){return n||rn(e,8,this.length),Im(this,e,!1,52,8)},"readDoubleBE");s(On,"checkInt");H.prototype.writeUIntLE=s(function(e,n,r,a){if(e=+e,n=n|0,r=r|0,!a){var o=Math.pow(2,8*r)-1;On(this,e,n,r,o,0)}var i=1,c=0;for(this[n]=e&255;++c<r&&(i*=256);)this[n+c]=e/i&255;return n+r},"writeUIntLE");H.prototype.writeUIntBE=s(function(e,n,r,a){if(e=+e,n=n|0,r=r|0,!a){var o=Math.pow(2,8*r)-1;On(this,e,n,r,o,0)}var i=r-1,c=1;for(this[n+i]=e&255;--i>=0&&(c*=256);)this[n+i]=e/c&255;return n+r},"writeUIntBE");H.prototype.writeUInt8=s(function(e,n,r){return e=+e,n=n|0,r||On(this,e,n,1,255,0),H.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=e&255,n+1},"writeUInt8");s(Mm,"objectWriteUInt16");H.prototype.writeUInt16LE=s(function(e,n,r){return e=+e,n=n|0,r||On(this,e,n,2,65535,0),H.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8):Mm(this,e,n,!0),n+2},"writeUInt16LE");H.prototype.writeUInt16BE=s(function(e,n,r){return e=+e,n=n|0,r||On(this,e,n,2,65535,0),H.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=e&255):Mm(this,e,n,!1),n+2},"writeUInt16BE");s(Nm,"objectWriteUInt32");H.prototype.writeUInt32LE=s(function(e,n,r){return e=+e,n=n|0,r||On(this,e,n,4,4294967295,0),H.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=e&255):Nm(this,e,n,!0),n+4},"writeUInt32LE");H.prototype.writeUInt32BE=s(function(e,n,r){return e=+e,n=n|0,r||On(this,e,n,4,4294967295,0),H.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255):Nm(this,e,n,!1),n+4},"writeUInt32BE");H.prototype.writeIntLE=s(function(e,n,r,a){if(e=+e,n=n|0,!a){var o=Math.pow(2,8*r-1);On(this,e,n,r,o-1,-o)}var i=0,c=1,u=0;for(this[n]=e&255;++i<r&&(c*=256);)e<0&&u===0&&this[n+i-1]!==0&&(u=1),this[n+i]=(e/c>>0)-u&255;return n+r},"writeIntLE");H.prototype.writeIntBE=s(function(e,n,r,a){if(e=+e,n=n|0,!a){var o=Math.pow(2,8*r-1);On(this,e,n,r,o-1,-o)}var i=r-1,c=1,u=0;for(this[n+i]=e&255;--i>=0&&(c*=256);)e<0&&u===0&&this[n+i+1]!==0&&(u=1),this[n+i]=(e/c>>0)-u&255;return n+r},"writeIntBE");H.prototype.writeInt8=s(function(e,n,r){return e=+e,n=n|0,r||On(this,e,n,1,127,-128),H.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=e&255,n+1},"writeInt8");H.prototype.writeInt16LE=s(function(e,n,r){return e=+e,n=n|0,r||On(this,e,n,2,32767,-32768),H.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8):Mm(this,e,n,!0),n+2},"writeInt16LE");H.prototype.writeInt16BE=s(function(e,n,r){return e=+e,n=n|0,r||On(this,e,n,2,32767,-32768),H.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=e&255):Mm(this,e,n,!1),n+2},"writeInt16BE");H.prototype.writeInt32LE=s(function(e,n,r){return e=+e,n=n|0,r||On(this,e,n,4,2147483647,-2147483648),H.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):Nm(this,e,n,!0),n+4},"writeInt32LE");H.prototype.writeInt32BE=s(function(e,n,r){return e=+e,n=n|0,r||On(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),H.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255):Nm(this,e,n,!1),n+4},"writeInt32BE");s(px,"checkIEEE754");s(fx,"writeFloat");H.prototype.writeFloatLE=s(function(e,n,r){return fx(this,e,n,!0,r)},"writeFloatLE");H.prototype.writeFloatBE=s(function(e,n,r){return fx(this,e,n,!1,r)},"writeFloatBE");s(gx,"writeDouble");H.prototype.writeDoubleLE=s(function(e,n,r){return gx(this,e,n,!0,r)},"writeDoubleLE");H.prototype.writeDoubleBE=s(function(e,n,r){return gx(this,e,n,!1,r)},"writeDoubleBE");H.prototype.copy=s(function(e,n,r,a){if(r||(r=0),!a&&a!==0&&(a=this.length),n>=e.length&&(n=e.length),n||(n=0),a>0&&a<r&&(a=r),a===r||e.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-n<a-r&&(a=e.length-n+r);var o=a-r,i;if(this===e&&r<n&&n<a)for(i=o-1;i>=0;--i)e[i+n]=this[i+r];else if(o<1e3||!H.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+n]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),n);return o},"copy");H.prototype.fill=s(function(e,n,r,a){if(typeof e=="string"){if(typeof n=="string"?(a=n,n=0,r=this.length):typeof r=="string"&&(a=r,r=this.length),e.length===1){var o=e.charCodeAt(0);o<256&&(e=o)}if(a!==void 0&&typeof a!="string")throw new TypeError("encoding must be a string");if(typeof a=="string"&&!H.isEncoding(a))throw new TypeError("Unknown encoding: "+a)}else typeof e=="number"&&(e=e&255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,e||(e=0);var i;if(typeof e=="number")for(i=n;i<r;++i)this[i]=e;else{var c=Cr(e)?e:km(new H(e,a).toString()),u=c.length;for(i=0;i<r-n;++i)this[i+n]=c[i%u]}return this},"fill");a9=/[^+\/0-9A-Za-z-_]/g;s(o9,"base64clean");s(i9,"stringtrim");s(s9,"toHex");s(km,"utf8ToBytes");s(c9,"asciiToBytes");s(u9,"utf16leToBytes");s(hx,"base64ToBytes");s(Lm,"blitBuffer");s(l9,"isnan");s(d9,"isBuffer");s(yx,"isFastBuffer");s(m9,"isSlowBuffer")});function Ba(){}function Xe(){Xe.init.call(this)}function vx(t){return t._maxListeners===void 0?Xe.defaultMaxListeners:t._maxListeners}function p9(t,e,n){if(e)t.call(n);else for(var r=t.length,a=Jc(t,r),o=0;o<r;++o)a[o].call(n)}function f9(t,e,n,r){if(e)t.call(n,r);else for(var a=t.length,o=Jc(t,a),i=0;i<a;++i)o[i].call(n,r)}function g9(t,e,n,r,a){if(e)t.call(n,r,a);else for(var o=t.length,i=Jc(t,o),c=0;c<o;++c)i[c].call(n,r,a)}function h9(t,e,n,r,a,o){if(e)t.call(n,r,a,o);else for(var i=t.length,c=Jc(t,i),u=0;u<i;++u)c[u].call(n,r,a,o)}function y9(t,e,n,r){if(e)t.apply(n,r);else for(var a=t.length,o=Jc(t,a),i=0;i<a;++i)o[i].apply(n,r)}function bx(t,e,n,r){var a,o,i;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');if(o=t._events,o?(o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),i=o[e]):(o=t._events=new Ba,t._eventsCount=0),!i)i=o[e]=n,++t._eventsCount;else if(typeof i=="function"?i=o[e]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),!i.warned&&(a=vx(t),a&&a>0&&i.length>a)){i.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=i.length,v9(c)}return t}function v9(t){typeof console.warn=="function"?console.warn(t):console.log(t)}function wx(t,e,n){var r=!1;function a(){t.removeListener(e,a),r||(r=!0,n.apply(t,arguments))}return s(a,"g"),a.listener=n,a}function Dx(t){var e=this._events;if(e){var n=e[t];if(typeof n=="function")return 1;if(n)return n.length}return 0}function b9(t,e){for(var n=e,r=n+1,a=t.length;r<a;n+=1,r+=1)t[n]=t[r];t.pop()}function Jc(t,e){for(var n=new Array(e);e--;)n[e]=t[e];return n}function w9(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}var Wf,Zn,ia=v(()=>{"use strict";d();s(Ba,"EventHandlers");Ba.prototype=Object.create(null);s(Xe,"EventEmitter");Zn=Xe;Xe.EventEmitter=Xe;Xe.usingDomains=!1;Xe.prototype.domain=void 0;Xe.prototype._events=void 0;Xe.prototype._maxListeners=void 0;Xe.defaultMaxListeners=10;Xe.init=function(){this.domain=null,Xe.usingDomains&&Wf.active&&!(this instanceof Wf.Domain)&&(this.domain=Wf.active),(!this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=new Ba,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Xe.prototype.setMaxListeners=s(function(e){if(typeof e!="number"||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},"setMaxListeners");s(vx,"$getMaxListeners");Xe.prototype.getMaxListeners=s(function(){return vx(this)},"getMaxListeners");s(p9,"emitNone");s(f9,"emitOne");s(g9,"emitTwo");s(h9,"emitThree");s(y9,"emitMany");Xe.prototype.emit=s(function(e){var n,r,a,o,i,c,u,l=!1,m=e==="error";if(c=this._events,c)m=m&&c.error==null;else if(!m)return!1;if(u=this.domain,m){if(n=arguments[1],u)n||(n=new Error('Uncaught, unspecified "error" event')),n.domainEmitter=this,n.domain=u,n.domainThrown=!1,u.emit("error",n);else{if(n instanceof Error)throw n;var p=new Error('Uncaught, unspecified "error" event. ('+n+")");throw p.context=n,p}return!1}if(r=c[e],!r)return!1;var g=typeof r=="function";switch(a=arguments.length,a){case 1:p9(r,g,this);break;case 2:f9(r,g,this,arguments[1]);break;case 3:g9(r,g,this,arguments[1],arguments[2]);break;case 4:h9(r,g,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(a-1),i=1;i<a;i++)o[i-1]=arguments[i];y9(r,g,this,o)}return l&&u.exit(),!0},"emit");s(bx,"_addListener");s(v9,"emitWarning");Xe.prototype.addListener=s(function(e,n){return bx(this,e,n,!1)},"addListener");Xe.prototype.on=Xe.prototype.addListener;Xe.prototype.prependListener=s(function(e,n){return bx(this,e,n,!0)},"prependListener");s(wx,"_onceWrap");Xe.prototype.once=s(function(e,n){if(typeof n!="function")throw new TypeError('"listener" argument must be a function');return this.on(e,wx(this,e,n)),this},"once");Xe.prototype.prependOnceListener=s(function(e,n){if(typeof n!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(e,wx(this,e,n)),this},"prependOnceListener");Xe.prototype.removeListener=s(function(e,n){var r,a,o,i,c;if(typeof n!="function")throw new TypeError('"listener" argument must be a function');if(a=this._events,!a)return this;if(r=a[e],!r)return this;if(r===n||r.listener&&r.listener===n)--this._eventsCount===0?this._events=new Ba:(delete a[e],a.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(o=-1,i=r.length;i-- >0;)if(r[i]===n||r[i].listener&&r[i].listener===n){c=r[i].listener,o=i;break}if(o<0)return this;if(r.length===1){if(r[0]=void 0,--this._eventsCount===0)return this._events=new Ba,this;delete a[e]}else b9(r,o);a.removeListener&&this.emit("removeListener",e,c||n)}return this},"removeListener");Xe.prototype.off=function(t,e){return this.removeListener(t,e)};Xe.prototype.removeAllListeners=s(function(e){var n,r;if(r=this._events,!r)return this;if(!r.removeListener)return arguments.length===0?(this._events=new Ba,this._eventsCount=0):r[e]&&(--this._eventsCount===0?this._events=new Ba:delete r[e]),this;if(arguments.length===0){for(var a=Object.keys(r),o=0,i;o<a.length;++o)i=a[o],i!=="removeListener"&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=new Ba,this._eventsCount=0,this}if(n=r[e],typeof n=="function")this.removeListener(e,n);else if(n)do this.removeListener(e,n[n.length-1]);while(n[0]);return this},"removeAllListeners");Xe.prototype.listeners=s(function(e){var n,r,a=this._events;return a?(n=a[e],n?typeof n=="function"?r=[n.listener||n]:r=w9(n):r=[]):r=[],r},"listeners");Xe.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Dx.call(t,e)};Xe.prototype.listenerCount=Dx;s(Dx,"listenerCount");Xe.prototype.eventNames=s(function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},"eventNames");s(b9,"spliceOne");s(Jc,"arrayClone");s(w9,"unwrapListeners")});var Tx=L((mce,Ex)=>{d();var ji=1e3,qi=ji*60,zi=qi*60,jo=zi*24,D9=jo*7,E9=jo*365.25;Ex.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return T9(t);if(n==="number"&&isFinite(t))return e.long?x9(t):S9(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function T9(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*E9;case"weeks":case"week":case"w":return n*D9;case"days":case"day":case"d":return n*jo;case"hours":case"hour":case"hrs":case"hr":case"h":return n*zi;case"minutes":case"minute":case"mins":case"min":case"m":return n*qi;case"seconds":case"second":case"secs":case"sec":case"s":return n*ji;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}s(T9,"parse");function S9(t){var e=Math.abs(t);return e>=jo?Math.round(t/jo)+"d":e>=zi?Math.round(t/zi)+"h":e>=qi?Math.round(t/qi)+"m":e>=ji?Math.round(t/ji)+"s":t+"ms"}s(S9,"fmtShort");function x9(t){var e=Math.abs(t);return e>=jo?Pm(t,e,jo,"day"):e>=zi?Pm(t,e,zi,"hour"):e>=qi?Pm(t,e,qi,"minute"):e>=ji?Pm(t,e,ji,"second"):t+" ms"}s(x9,"fmtLong");function Pm(t,e,n,r){var a=e>=n*1.5;return Math.round(t/n)+" "+r+(a?"s":"")}s(Pm,"plural")});var xx=L((gce,Sx)=>{d();function C9(t){n.debug=n,n.default=n,n.coerce=u,n.disable=o,n.enable=a,n.enabled=i,n.humanize=Tx(),n.destroy=l,Object.keys(t).forEach(m=>{n[m]=t[m]}),n.names=[],n.skips=[],n.formatters={};function e(m){let p=0;for(let g=0;g<m.length;g++)p=(p<<5)-p+m.charCodeAt(g),p|=0;return n.colors[Math.abs(p)%n.colors.length]}s(e,"selectColor"),n.selectColor=e;function n(m){let p,g=null,f,y;function b(...D){if(!b.enabled)return;let T=b,A=Number(new Date),R=A-(p||A);T.diff=R,T.prev=p,T.curr=A,p=A,D[0]=n.coerce(D[0]),typeof D[0]!="string"&&D.unshift("%O");let F=0;D[0]=D[0].replace(/%([a-zA-Z%])/g,(V,z)=>{if(V==="%%")return"%";F++;let ne=n.formatters[z];if(typeof ne=="function"){let se=D[F];V=ne.call(T,se),D.splice(F,1),F--}return V}),n.formatArgs.call(T,D),(T.log||n.log).apply(T,D)}return s(b,"debug"),b.namespace=m,b.useColors=n.useColors(),b.color=n.selectColor(m),b.extend=r,b.destroy=n.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(f!==n.namespaces&&(f=n.namespaces,y=n.enabled(m)),y),set:D=>{g=D}}),typeof n.init=="function"&&n.init(b),b}s(n,"createDebug");function r(m,p){let g=n(this.namespace+(typeof p>"u"?":":p)+m);return g.log=this.log,g}s(r,"extend");function a(m){n.save(m),n.namespaces=m,n.names=[],n.skips=[];let p,g=(typeof m=="string"?m:"").split(/[\s,]+/),f=g.length;for(p=0;p<f;p++)g[p]&&(m=g[p].replace(/\*/g,".*?"),m[0]==="-"?n.skips.push(new RegExp("^"+m.slice(1)+"$")):n.names.push(new RegExp("^"+m+"$")))}s(a,"enable");function o(){let m=[...n.names.map(c),...n.skips.map(c).map(p=>"-"+p)].join(",");return n.enable(""),m}s(o,"disable");function i(m){if(m[m.length-1]==="*")return!0;let p,g;for(p=0,g=n.skips.length;p<g;p++)if(n.skips[p].test(m))return!1;for(p=0,g=n.names.length;p<g;p++)if(n.names[p].test(m))return!0;return!1}s(i,"enabled");function c(m){return m.toString().substring(2,m.toString().length-2).replace(/\.\*\?$/,"*")}s(c,"toNamespace");function u(m){return m instanceof Error?m.stack||m.message:m}s(u,"coerce");function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s(l,"destroy"),n.enable(n.load()),n}s(C9,"setup");Sx.exports=C9});var Cx=L((Gn,Om)=>{d();Gn.formatArgs=F9;Gn.save=R9;Gn.load=_9;Gn.useColors=A9;Gn.storage=k9();Gn.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Gn.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 A9(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}s(A9,"useColors");function F9(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Om.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(n++,a==="%c"&&(r=n))}),t.splice(r,0,e)}s(F9,"formatArgs");Gn.log=console.debug||console.log||(()=>{});function R9(t){try{t?Gn.storage.setItem("debug",t):Gn.storage.removeItem("debug")}catch{}}s(R9,"save");function _9(){let t;try{t=Gn.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}s(_9,"load");function k9(){try{return localStorage}catch{}}s(k9,"localstorage");Om.exports=xx()(Gn);var{formatters:I9}=Om.exports;I9.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});function Um(t){if(!t)throw new Error("name must be non-empty")}function M9(t,e){for(var n=0,r=t.length,a;n<r;)a=n+r>>>1,t[a].startTime<e.startTime?n=a+1:r=a;t.splice(n,0,e)}var xn,Ax,qm,zm,Xc,Hm,Bm,jm,Fx=v(()=>{d();xn=typeof performance<"u"&&performance,Ax=xn&&xn.now?function(){return xn.now()}:function(){return Date.now()};s(Um,"throwIfEmpty");s(M9,"insertSorted");xn&&xn.mark&&xn.getEntriesByName&&xn.getEntriesByType&&xn.clearMeasures?(qm=s(function(t){Um(t),xn.mark("start "+t)},"mark"),zm=s(function(t){Um(t),xn.mark("end "+t),xn.measure(t,"start "+t,"end "+t);var e=xn.getEntriesByName(t);return e[e.length-1]},"stop"),Xc=s(function(){return xn.getEntriesByType("measure")},"getEntries"),Hm=s(function(){xn.clearMarks(),xn.clearMeasures()},"clear")):(Bm={},jm=[],qm=s(function(t){Um(t);var e=Ax();Bm["$"+t]=e},"mark"),zm=s(function(t){Um(t);var e=Ax(),n=Bm["$"+t];if(!n)throw new Error("no known mark: "+t);var r={startTime:n,name:t,duration:e-n,entryType:"measure"};return M9(jm,r),r},"stop"),Xc=s(function(){return jm},"getEntries"),Hm=s(function(){Bm={},jm=[]},"clear"))});var qa,ja,Hi,Gi,Vf,Rx,L9,_x,Wi,N,He=v(()=>{d();Ua();ia();qa=zt(Cx());Fx();ja=pn.platform==="win32",Hi=pn.browser,Gi={red:Hi?"crimson":1,yellow:Hi?"gold":3,cyan:Hi?"darkturquoise":6,green:Hi?"forestgreen":2,blue:Hi?"steelblue":4,magenta:Hi?"palevioletred":5};qa.default.colors=[Gi.cyan,Gi.green,Gi.blue,Gi.magenta];Vf=class extends Xe{static{s(this,"Emitter")}issueStatus(e,n){(e==="status"||e==="statusEnd")&&this.emit(e,[e,...n])}issueWarning(e,n){this.emit("warning",[e,...n])}},Rx={},L9=25,Wi=class t{static{s(this,"Log")}static _logToStdErr(e,n){t.loggerfn(e)(...n)}static loggerfn(e){e=`LH:${e}`;let n=Rx[e];return n||(n=(0,qa.default)(e),Rx[e]=n,e.endsWith("error")?n.color=Gi.red:e.endsWith("warn")&&(n.color=Gi.yellow)),n}static setLevel(e){switch(_x=e,e){case"silent":qa.default.enable("-LH:*");break;case"verbose":qa.default.enable("LH:*");break;case"warn":qa.default.enable("-LH:*, LH:*:warn, LH:*:error");break;case"error":qa.default.enable("-LH:*, LH:*:error");break;default:qa.default.enable("LH:*, -LH:*:verbose")}}static formatProtocol(e,n,r){let a=!pn||pn.browser?1/0:pn.stdout.columns,o=n.method||"?????",i=a-o.length-e.length-L9,c=n.params&&o!=="IO.read"?JSON.stringify(n.params).substr(0,i):"";t._logToStdErr(`${e}:${r||""}`,[o,c])}static isVerbose(){return _x==="verbose"}static time({msg:e,id:n,args:r=[]},a="log"){qm(n),t[a]("status",e,...r)}static timeEnd({msg:e,id:n,args:r=[]},a="verbose"){t[a]("statusEnd",e,...r),zm(n)}static log(e,...n){return t.events.issueStatus(e,n),t._logToStdErr(e,n)}static warn(e,...n){return t.events.issueWarning(e,n),t._logToStdErr(`${e}:warn`,n)}static error(e,...n){return t._logToStdErr(`${e}:error`,n)}static verbose(e,...n){return t.events.issueStatus(e,n),t._logToStdErr(`${e}:verbose`,n)}static greenify(e){return`${t.green}${e}${t.reset}`}static redify(e){return`${t.red}${e}${t.reset}`}static get green(){return"\x1B[32m"}static get red(){return"\x1B[31m"}static get yellow(){return"\x1B[33m"}static get purple(){return"\x1B[95m"}static get reset(){return"\x1B[0m"}static get bold(){return"\x1B[1m"}static get dim(){return"\x1B[2m"}static get tick(){return ja?"√":"✓"}static get cross(){return ja?"×":"✘"}static get whiteSmallSquare(){return ja?"·":"▫"}static get heavyHorizontal(){return ja?"─":"━"}static get heavyVertical(){return ja?"│ ":"┃ "}static get heavyUpAndRight(){return ja?"└":"┗"}static get heavyVerticalAndRight(){return ja?"├":"┣"}static get heavyDownAndHorizontal(){return ja?"┬":"┳"}static get doubleLightHorizontal(){return"──"}};Wi.events=new Vf;Wi.takeTimeEntries=()=>{let t=Xc();return Hm(),t};Wi.getTimeEntries=()=>Xc();N=Wi});var Yt=v(()=>{"use strict";d();});var $f,X,Ue=v(()=>{"use strict";d();Yt();$f=class{static{s(this,"BaseGatherer")}meta={supportedModes:[]};startInstrumentation(e){}startSensitiveInstrumentation(e){}stopSensitiveInstrumentation(e){}stopInstrumentation(e){}getArtifact(e){}},X=$f});var P9,O9,U9,B9,j9,q9,Kt,Ar=v(()=>{"use strict";d();He();P9=/^(chrome|https?):/,O9=16,U9="RunTask",B9="ThreadControllerImpl::RunTask",j9="ThreadControllerImpl::DoWork",q9="TaskQueueManager::ProcessTaskFromWorkQueue",Kt=class t{static{s(this,"TraceProcessor")}static get TIMESPAN_MARKER_ID(){return"__lighthouseTimespanStart__"}static createNoNavstartError(){return new Error("No navigationStart event found")}static createNoResourceSendRequestError(){return new Error("No ResourceSendRequest event found")}static createNoTracingStartedError(){return new Error("No tracingStartedInBrowser event found")}static createNoFirstContentfulPaintError(){return new Error("No FirstContentfulPaint event found")}static createNoLighthouseMarkerError(){return new Error("No Lighthouse timespan marker event found")}static _isNavigationStartOfInterest(e){return e.name!=="navigationStart"?!1:e.args.data?.documentLoaderURL===void 0?!0:e.args.data?.documentLoaderURL?P9.test(e.args.data.documentLoaderURL):!1}static _sortTimestampEventGroup(e,n,r,a){let o=s(p=>n[p],"lookupArrayIndexByTsIndex"),i=s(p=>a[o(p)],"lookupEventByTsIndex"),c=[],u=[],l=[];for(let p of e){let g=o(p),f=i(p);f.ph==="E"?c.push(g):f.ph==="X"||f.ph==="B"?u.push(g):l.push(g)}let m=new Map;for(let p of u){let g=a[p];if(g.ph==="X")m.set(p,g.dur);else{let f=Number.MAX_SAFE_INTEGER,y=0,b=r+e.length;for(let D=b;D<n.length;D++){let T=i(D);if(T.name===g.name&&T.pid===g.pid&&T.tid===g.tid)if(T.ph==="E"&&y===0){f=T.ts-g.ts;break}else T.ph==="E"?y--:T.ph==="B"&&y++}m.set(p,f)}}return u.sort((p,g)=>(m.get(g)||0)-(m.get(p)||0)||p-g),l.sort((p,g)=>p-g),[...c,...u,...l]}static filteredTraceSort(e,n){let r=[];for(let o=0;o<e.length;o++)n(e[o])&&r.push(o);r.sort((o,i)=>e[o].ts-e[i].ts);for(let o=0;o<r.length-1;o++){let i=e[r[o]].ts,c=[o];for(let l=o+1;l<r.length&&e[r[l]].ts===i;l++)c.push(l);if(c.length===1)continue;let u=t._sortTimestampEventGroup(c,r,o,e);r.splice(o,u.length,...u),o+=c.length-1}let a=[];for(let o=0;o<r.length;o++)a.push(e[r[o]]);return a}static assertHasToplevelEvents(e){if(!e.some(this.isScheduleableTask))throw new Error("Could not find any top level events")}static _riskPercentiles(e,n,r,a=0){let o=0;for(let g=0;g<e.length;g++)o+=e[g];o-=a;let i=n-o,c=0,u=i,l=[],m=-1,p=e.length+1;a>0&&p--;for(let g of r){let f=g*n;for(;u<f&&m<e.length-1;)i+=c,p-=c<0?-1:1,a>0&&a<e[m+1]?(c=-a,a=0):(m++,c=e[m]),u=i+Math.abs(c)*p;l.push({percentile:g,time:Math.max(0,(f-i)/p)+O9})}return l}static getRiskToResponsiveness(e,n,r,a=[.5,.75,.9,.99,1]){let o=r-n;a.sort((c,u)=>c-u);let i=this.getMainThreadTopLevelEventDurations(e,n,r);return this._riskPercentiles(i.durations,o,a,i.clippedLength)}static getMainThreadTopLevelEventDurations(e,n=0,r=1/0){let a=[],o=0;for(let i of e){if(i.end<n||i.start>r)continue;let c=i.duration,u=i.start;u<n&&(u=n,c=i.end-n),i.end>r&&(o=c-(r-u)),a.push(c)}return a.sort((i,c)=>i-c),{durations:a,clippedLength:o}}static getMainThreadTopLevelEvents(e,n=0,r=1/0){let a=[];for(let o of e.mainThreadEvents){if(!this.isScheduleableTask(o)||!o.dur)continue;let i=(o.ts-e.timeOriginEvt.ts)/1e3,c=(o.ts+o.dur-e.timeOriginEvt.ts)/1e3;i>r||c<n||a.push({start:i,end:c,duration:o.dur/1e3})}return a}static findMainFrameIds(e){let n=e.find(i=>i.name==="TracingStartedInBrowser");if(n?.args.data?.frames){let i=n.args.data.frames.find(l=>!l.parent),c=i?.frame,u=i?.processId;if(u&&c)return{startingPid:u,frameId:c}}let r=e.find(i=>i.name==="TracingStartedInPage");if(r?.args?.data){let i=r.args.data.page;if(i)return{startingPid:r.pid,frameId:i}}let a=e.find(i=>this._isNavigationStartOfInterest(i)&&i.args.data?.isLoadingMainFrame),o=e.find(i=>i.name==="ResourceSendRequest");if(a?.args?.data&&o&&o.pid===a.pid&&o.tid===a.tid){let i=a.args.frame;if(i)return{startingPid:a.pid,frameId:i}}throw this.createNoTracingStartedError()}static findMainFramePidTids(e,n){let r=n.filter(i=>(i.name==="FrameCommittedInBrowser"||i.name==="ProcessReadyInBrowser")&&i.args?.data?.frame===e.frameId&&i?.args?.data?.processId),a=r.length?r.map(i=>i?.args?.data?.processId):[e.startingPid],o=new Map;for(let i of new Set(a)){let c=n.filter(m=>m.cat==="__metadata"&&m.pid===i&&m.ph==="M"&&m.name==="thread_name"),u=c.find(m=>m.args.name==="CrRendererMain");u||(u=c.find(m=>m.args.name==="CrBrowserMain"));let l=u?.tid;if(!l)throw new Error("Unable to determine tid for renderer process");o.set(i,l)}return o}static isScheduleableTask(e){return e.name===U9||e.name===B9||e.name===j9||e.name===q9}static isLCPEvent(e){return e.name!=="largestContentfulPaint::Invalidate"&&e.name!=="largestContentfulPaint::Candidate"?!1:!!e.args?.frame}static isLCPCandidateEvent(e){return!!(e.name==="largestContentfulPaint::Candidate"&&e.args?.frame&&e.args.data&&e.args.data.size!==void 0)}static getFrameId(e){return e.args?.data?.frame||e.args.data?.frameID||e.args.frame}static computeValidLCPAllFrames(e,n){let r=e.filter(this.isLCPEvent).reverse(),a=new Map;for(let i of r){if(i.ts<=n.ts)break;let c=i.args.frame;a.has(c)||a.set(c,i)}let o;for(let i of a.values())this.isLCPCandidateEvent(i)&&(!o||i.args.data.size>o.args.data.size)&&(o=i);return{lcp:o,invalidated:!!(!o&&a.size)}}static resolveRootFrames(e){let n=new Map;for(let a of e)a.parent&&n.set(a.id,a.parent);let r=new Map;for(let a of e){let o=a.id;for(;n.has(o);)o=n.get(o);if(o===void 0)throw new Error("Unexpected undefined frameId");r.set(a.id,o)}return r}static processTrace(e,n){let{timeOriginDeterminationMethod:r="auto"}=n||{},a=this.filteredTraceSort(e.traceEvents,F=>F.cat.includes("blink.user_timing")||F.cat.includes("loading")||F.cat.includes("devtools.timeline")||F.cat==="__metadata"),o=this.findMainFrameIds(a),i=this.findMainFramePidTids(o,a),c=t.filteredTraceSort(e.traceEvents,F=>i.has(F.pid)),u=new Map,l=a.find(F=>F.name==="TracingStartedInBrowser")?.args?.data?.frames;if(l)for(let F of l)u.set(F.frame,{id:F.frame,url:F.url,parent:F.parent});a.filter(F=>!!(F.name==="FrameCommittedInBrowser"&&F.args.data?.frame&&F.args.data.url!==void 0)).forEach(F=>{u.set(F.args.data.frame,{id:F.args.data.frame,url:F.args.data.url,parent:F.args.data.parent})});let m=[...u.values()],p=this.resolveRootFrames(m),g=[...p.entries()].filter(([,F])=>F===o.frameId).map(([F])