@yuebai008/cli
Version:
Command line interface for rapid qg-minigame development
10 lines • 1.86 MB
JavaScript
/**
* 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 e=Object.create,t=Object.defineProperty,a=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,o=(e,a)=>t(e,"name",{value:a,configurable:!0}),s=(e,t)=>()=>(e&&(t=e(e=0)),t),l=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,a)=>{for(var n in a)t(e,n,{get:a[n],enumerable:!0})},u=(e,r,o,s)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let l of n(r))!i.call(e,l)&&l!==o&&t(e,l,{get:()=>r[l],enumerable:!(s=a(r,l))||s.enumerable});return e},d=(a,n,i)=>(i=null!=a?e(r(a)):{},u(!n&&a&&a.__esModule?i:t(i,"default",{value:a,enumerable:!0}),a));function m(){throw new Error("setTimeout has not been defined")}function p(){throw new Error("clearTimeout has not been defined")}function h(e){if(x===setTimeout)return setTimeout(e,0);if((x===m||!x)&&setTimeout)return x=setTimeout,setTimeout(e,0);try{return x(e,0)}catch{try{return x.call(null,e,0)}catch{return x.call(this,e,0)}}}function g(e){if(A===clearTimeout)return clearTimeout(e);if((A===p||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(e);try{return A(e)}catch{try{return A.call(null,e)}catch{return A.call(this,e)}}}function f(){!R||!F||(R=!1,F.length?_=F.concat(_):N=-1,_.length&&y())}function y(){if(!R){var e=h(f);R=!0;for(var t=_.length;t;){for(F=_,_=[];++N<t;)F&&F[N].run();N=-1,t=_.length}F=null,R=!1,g(e)}}function v(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];_.push(new b(e,t)),1===_.length&&!R&&h(y)}function b(e,t){this.fun=e,this.array=t}function w(){}function D(e){throw new Error("process.binding is not supported")}function E(){return"/"}function T(e){throw new Error("process.chdir is not supported")}function S(){return 0}function C(e){var t=.001*G.call(H),a=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(a-=e[0],(n-=e[1])<0&&(a--,n+=1e9)),[a,n]}function k(){return(new Date-$)/1e3}var x,A,_,R,F,N,I,M,P,L,O,j,U,B,q,z,V,W,H,G,$,K,Y=s((()=>{J(),o(m,"defaultSetTimout"),o(p,"defaultClearTimeout"),x=m,A=p,"function"==typeof globalThis.setTimeout&&(x=setTimeout),"function"==typeof globalThis.clearTimeout&&(A=clearTimeout),o(h,"runTimeout"),o(g,"runClearTimeout"),_=[],R=!1,N=-1,o(f,"cleanUpNextTick"),o(y,"drainQueue"),o(v,"nextTick"),o(b,"Item"),b.prototype.run=function(){this.fun.apply(null,this.array)},"browser","browser",!0,I={},M=[],"",P={},L={},O={},o(w,"noop"),j=w,U=w,B=w,q=w,z=w,V=w,W=w,o(D,"binding"),o(E,"cwd"),o(T,"chdir"),o(S,"umask"),H=globalThis.performance||{},G=H.now||H.mozNow||H.msNow||H.oNow||H.webkitNow||function(){return(new Date).getTime()},o(C,"hrtime"),$=new Date,o(k,"uptime"),K={nextTick:v,title:"browser",browser:true,env:I,argv:M,version:"",versions:P,on:j,addListener:U,once:B,off:q,removeListener:z,removeAllListeners:V,emit:W,binding:D,cwd:E,chdir:T,umask:S,hrtime:C,platform:"browser",release:L,config:O,uptime:k}})),J=s((()=>{Y(),globalThis.process=K}));function Z(){nt=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)et[t]=e[t],tt[e.charCodeAt(t)]=t;tt["-".charCodeAt(0)]=62,tt["_".charCodeAt(0)]=63}function X(e){nt||Z();var t,a,n,r,i,o,s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,o=new at(3*s/4-i),n=i>0?s-4:s;var l=0;for(t=0,a=0;t<n;t+=4,a+=3)r=tt[e.charCodeAt(t)]<<18|tt[e.charCodeAt(t+1)]<<12|tt[e.charCodeAt(t+2)]<<6|tt[e.charCodeAt(t+3)],o[l++]=r>>16&255,o[l++]=r>>8&255,o[l++]=255&r;return 2===i?(r=tt[e.charCodeAt(t)]<<2|tt[e.charCodeAt(t+1)]>>4,o[l++]=255&r):1===i&&(r=tt[e.charCodeAt(t)]<<10|tt[e.charCodeAt(t+1)]<<4|tt[e.charCodeAt(t+2)]>>2,o[l++]=r>>8&255,o[l++]=255&r),o}function Q(e){return et[e>>18&63]+et[e>>12&63]+et[e>>6&63]+et[63&e]}function ee(e,t,a){for(var n,r=[],i=t;i<a;i+=3)n=(e[i]<<16)+(e[i+1]<<8)+e[i+2],r.push(Q(n));return r.join("")}function te(e){nt||Z();for(var t,a=e.length,n=a%3,r="",i=[],o=16383,s=0,l=a-n;s<l;s+=o)i.push(ee(e,s,s+o>l?l:s+o));return 1===n?(t=e[a-1],r+=et[t>>2],r+=et[t<<4&63],r+="=="):2===n&&(t=(e[a-2]<<8)+e[a-1],r+=et[t>>10],r+=et[t>>4&63],r+=et[t<<2&63],r+="="),i.push(r),i.join("")}function ae(e,t,a,n,r){var i,o,s=8*r-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=a?r-1:0,m=a?-1:1,p=e[t+d];for(d+=m,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=m,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=n;u>0;o=256*o+e[t+d],d+=m,u-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),i-=c}return(p?-1:1)*o*Math.pow(2,i-n)}function ne(e,t,a,n,r,i){var o,s,l,c=8*i-r-1,u=(1<<c)-1,d=u>>1,m=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?m/l:m*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,r),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;e[a+p]=255&s,p+=h,s/=256,r-=8);for(o=o<<r|s,c+=r;c>0;e[a+p]=255&o,p+=h,o/=256,c-=8);e[a+p-h]|=128*g}function re(){return oe.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ie(e,t){if(re()<t)throw new RangeError("Invalid typed array length");return oe.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=oe.prototype:(null===e&&(e=new oe(t)),e.length=t),e}function oe(e,t,a){if(!(oe.TYPED_ARRAY_SUPPORT||this instanceof oe))return new oe(e,t,a);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return ue(this,e)}return se(this,e,t,a)}function se(e,t,a,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?pe(e,t,a,n):"string"==typeof t?de(e,t,a):he(e,t)}function le(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function ce(e,t,a,n){return le(t),t<=0?ie(e,t):void 0!==a?"string"==typeof n?ie(e,t).fill(a,n):ie(e,t).fill(a):ie(e,t)}function ue(e,t){if(le(t),e=ie(e,t<0?0:0|ge(t)),!oe.TYPED_ARRAY_SUPPORT)for(var a=0;a<t;++a)e[a]=0;return e}function de(e,t,a){if(("string"!=typeof a||""===a)&&(a="utf8"),!oe.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');var n=0|ye(t,a),r=(e=ie(e,n)).write(t,a);return r!==n&&(e=e.slice(0,r)),e}function me(e,t){var a=t.length<0?0:0|ge(t.length);e=ie(e,a);for(var n=0;n<a;n+=1)e[n]=255&t[n];return e}function pe(e,t,a,n){if(t.byteLength,a<0||t.byteLength<a)throw new RangeError("'offset' is out of bounds");if(t.byteLength<a+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===a&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,a):new Uint8Array(t,a,n),oe.TYPED_ARRAY_SUPPORT?(e=t).__proto__=oe.prototype:e=me(e,t),e}function he(e,t){if(fe(t)){var a=0|ge(t.length);return 0===(e=ie(e,a)).length||t.copy(e,0,0,a),e}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||Je(t.length)?ie(e,0):me(e,t);if("Buffer"===t.type&&it(t.data))return me(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function ge(e){if(e>=re())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+re().toString(16)+" bytes");return 0|e}function fe(e){return!(null==e||!e._isBuffer)}function ye(e,t){if(fe(e))return e.length;if(typeof ArrayBuffer<"u"&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var a=e.length;if(0===a)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return He(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return Ke(e).length;default:if(n)return He(e).length;t=(""+t).toLowerCase(),n=!0}}function ve(e,t,a){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===a||a>this.length)&&(a=this.length),a<=0)||(a>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ie(this,t,a);case"utf8":case"utf-8":return _e(this,t,a);case"ascii":return Fe(this,t,a);case"latin1":case"binary":return Ne(this,t,a);case"base64":return Ae(this,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Me(this,t,a);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function be(e,t,a){var n=e[t];e[t]=e[a],e[a]=n}function we(e,t,a,n,r){if(0===e.length)return-1;if("string"==typeof a?(n=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=r?0:e.length-1),a<0&&(a=e.length+a),a>=e.length){if(r)return-1;a=e.length-1}else if(a<0){if(!r)return-1;a=0}if("string"==typeof t&&(t=oe.from(t,n)),fe(t))return 0===t.length?-1:De(e,t,a,n,r);if("number"==typeof t)return t&=255,oe.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,a):Uint8Array.prototype.lastIndexOf.call(e,t,a):De(e,[t],a,n,r);throw new TypeError("val must be string, number or Buffer")}function De(e,t,a,n,r){var i,s=1,l=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,l/=2,c/=2,a/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o(u,"read"),r){var d=-1;for(i=a;i<l;i++)if(u(e,i)===u(t,-1===d?0:i-d)){if(-1===d&&(d=i),i-d+1===c)return d*s}else-1!==d&&(i-=i-d),d=-1}else for(a+c>l&&(a=l-c),i=a;i>=0;i--){for(var m=!0,p=0;p<c;p++)if(u(e,i+p)!==u(t,p)){m=!1;break}if(m)return i}return-1}function Ee(e,t,a,n){a=Number(a)||0;var r=e.length-a;n?(n=Number(n))>r&&(n=r):n=r;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[a+o]=s}return o}function Te(e,t,a,n){return Ye(He(t,e.length-a),e,a,n)}function Se(e,t,a,n){return Ye(Ge(t),e,a,n)}function Ce(e,t,a,n){return Se(e,t,a,n)}function ke(e,t,a,n){return Ye(Ke(t),e,a,n)}function xe(e,t,a,n){return Ye($e(t,e.length-a),e,a,n)}function Ae(e,t,a){return 0===t&&a===e.length?te(e):te(e.slice(t,a))}function _e(e,t,a){a=Math.min(e.length,a);for(var n=[],r=t;r<a;){var i,o,s,l,c=e[r],u=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=a)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[r+1]))&&((l=(31&c)<<6|63&i)>127&&(u=l));break;case 3:i=e[r+1],o=e[r+2],128==(192&i)&&128==(192&o)&&((l=(15&c)<<12|(63&i)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l));break;case 4:i=e[r+1],o=e[r+2],s=e[r+3],128==(192&i)&&128==(192&o)&&128==(192&s)&&((l=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),r+=d}return Re(n)}function Re(e){var t=e.length;if(t<=ot)return String.fromCharCode.apply(String,e);for(var a="",n=0;n<t;)a+=String.fromCharCode.apply(String,e.slice(n,n+=ot));return a}function Fe(e,t,a){var n="";a=Math.min(e.length,a);for(var r=t;r<a;++r)n+=String.fromCharCode(127&e[r]);return n}function Ne(e,t,a){var n="";a=Math.min(e.length,a);for(var r=t;r<a;++r)n+=String.fromCharCode(e[r]);return n}function Ie(e,t,a){var n=e.length;(!t||t<0)&&(t=0),(!a||a<0||a>n)&&(a=n);for(var r="",i=t;i<a;++i)r+=We(e[i]);return r}function Me(e,t,a){for(var n=e.slice(t,a),r="",i=0;i<n.length;i+=2)r+=String.fromCharCode(n[i]+256*n[i+1]);return r}function Pe(e,t,a){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>a)throw new RangeError("Trying to access beyond buffer length")}function Le(e,t,a,n,r,i){if(!fe(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<i)throw new RangeError('"value" argument is out of bounds');if(a+n>e.length)throw new RangeError("Index out of range")}function Oe(e,t,a,n){t<0&&(t=65535+t+1);for(var r=0,i=Math.min(e.length-a,2);r<i;++r)e[a+r]=(t&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function je(e,t,a,n){t<0&&(t=4294967295+t+1);for(var r=0,i=Math.min(e.length-a,4);r<i;++r)e[a+r]=t>>>8*(n?r:3-r)&255}function Ue(e,t,a,n,r,i){if(a+n>e.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function Be(e,t,a,n,r){return r||Ue(e,0,a,4),ne(e,t,a,n,23,4),a+4}function qe(e,t,a,n,r){return r||Ue(e,0,a,8),ne(e,t,a,n,52,8),a+8}function ze(e){if((e=Ve(e).replace(st,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function Ve(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function We(e){return e<16?"0"+e.toString(16):e.toString(16)}function He(e,t){t=t||1/0;for(var a,n=e.length,r=null,i=[],o=0;o<n;++o){if((a=e.charCodeAt(o))>55295&&a<57344){if(!r){if(a>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}r=a;continue}if(a<56320){(t-=3)>-1&&i.push(239,191,189),r=a;continue}a=65536+(r-55296<<10|a-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,a<128){if((t-=1)<0)break;i.push(a)}else if(a<2048){if((t-=2)<0)break;i.push(a>>6|192,63&a|128)}else if(a<65536){if((t-=3)<0)break;i.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return i}function Ge(e){for(var t=[],a=0;a<e.length;++a)t.push(255&e.charCodeAt(a));return t}function $e(e,t){for(var a,n,r,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(a=e.charCodeAt(o))>>8,r=a%256,i.push(r),i.push(n);return i}function Ke(e){return X(ze(e))}function Ye(e,t,a,n){for(var r=0;r<n&&!(r+a>=t.length||r>=e.length);++r)t[r+a]=e[r];return r}function Je(e){return e!=e}function Ze(e){return null!=e&&(!!e._isBuffer||Xe(e)||Qe(e))}function Xe(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Qe(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Xe(e.slice(0,0))}var et,tt,at,nt,rt,it,ot,st,lt=s((()=>{J(),et=[],tt=[],at=typeof Uint8Array<"u"?Uint8Array:Array,nt=!1,o(Z,"init"),o(X,"toByteArray"),o(Q,"tripletToBase64"),o(ee,"encodeChunk"),o(te,"fromByteArray"),o(ae,"read"),o(ne,"write"),rt={}.toString,it=Array.isArray||function(e){return"[object Array]"==rt.call(e)},50,oe.TYPED_ARRAY_SUPPORT=void 0===globalThis.TYPED_ARRAY_SUPPORT||globalThis.TYPED_ARRAY_SUPPORT,re(),o(re,"kMaxLength"),o(ie,"createBuffer"),o(oe,"Buffer"),oe.poolSize=8192,oe._augment=function(e){return e.__proto__=oe.prototype,e},o(se,"from"),oe.from=function(e,t,a){return se(null,e,t,a)},oe.TYPED_ARRAY_SUPPORT&&(oe.prototype.__proto__=Uint8Array.prototype,oe.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&oe[Symbol.species]),o(le,"assertSize"),o(ce,"alloc"),oe.alloc=function(e,t,a){return ce(null,e,t,a)},o(ue,"allocUnsafe"),oe.allocUnsafe=function(e){return ue(null,e)},oe.allocUnsafeSlow=function(e){return ue(null,e)},o(de,"fromString"),o(me,"fromArrayLike"),o(pe,"fromArrayBuffer"),o(he,"fromObject"),o(ge,"checked"),oe.isBuffer=Ze,o(fe,"internalIsBuffer"),oe.compare=o((function(e,t){if(!fe(e)||!fe(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var a=e.length,n=t.length,r=0,i=Math.min(a,n);r<i;++r)if(e[r]!==t[r]){a=e[r],n=t[r];break}return a<n?-1:n<a?1:0}),"compare"),oe.isEncoding=o((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"),oe.concat=o((function(e,t){if(!it(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return oe.alloc(0);var a;if(void 0===t)for(t=0,a=0;a<e.length;++a)t+=e[a].length;var n=oe.allocUnsafe(t),r=0;for(a=0;a<e.length;++a){var i=e[a];if(!fe(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,r),r+=i.length}return n}),"concat"),o(ye,"byteLength"),oe.byteLength=ye,o(ve,"slowToString"),oe.prototype._isBuffer=!0,o(be,"swap"),oe.prototype.swap16=o((function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)be(this,t,t+1);return this}),"swap16"),oe.prototype.swap32=o((function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)be(this,t,t+3),be(this,t+1,t+2);return this}),"swap32"),oe.prototype.swap64=o((function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)be(this,t,t+7),be(this,t+1,t+6),be(this,t+2,t+5),be(this,t+3,t+4);return this}),"swap64"),oe.prototype.toString=o((function(){var e=0|this.length;return 0===e?"":0===arguments.length?_e(this,0,e):ve.apply(this,arguments)}),"toString"),oe.prototype.equals=o((function(e){if(!fe(e))throw new TypeError("Argument must be a Buffer");return this===e||0===oe.compare(this,e)}),"equals"),oe.prototype.inspect=o((function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"}),"inspect"),oe.prototype.compare=o((function(e,t,a,n,r){if(!fe(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===a&&(a=e?e.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||a>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=a)return 0;if(n>=r)return-1;if(t>=a)return 1;if(this===e)return 0;for(var i=(r>>>=0)-(n>>>=0),o=(a>>>=0)-(t>>>=0),s=Math.min(i,o),l=this.slice(n,r),c=e.slice(t,a),u=0;u<s;++u)if(l[u]!==c[u]){i=l[u],o=c[u];break}return i<o?-1:o<i?1:0}),"compare"),o(we,"bidirectionalIndexOf"),o(De,"arrayIndexOf"),oe.prototype.includes=o((function(e,t,a){return-1!==this.indexOf(e,t,a)}),"includes"),oe.prototype.indexOf=o((function(e,t,a){return we(this,e,t,a,!0)}),"indexOf"),oe.prototype.lastIndexOf=o((function(e,t,a){return we(this,e,t,a,!1)}),"lastIndexOf"),o(Ee,"hexWrite"),o(Te,"utf8Write"),o(Se,"asciiWrite"),o(Ce,"latin1Write"),o(ke,"base64Write"),o(xe,"ucs2Write"),oe.prototype.write=o((function(e,t,a,n){if(void 0===t)n="utf8",a=this.length,t=0;else if(void 0===a&&"string"==typeof t)n=t,a=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(a)?(a|=0,void 0===n&&(n="utf8")):(n=a,a=void 0)}var r=this.length-t;if((void 0===a||a>r)&&(a=r),e.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return Ee(this,e,t,a);case"utf8":case"utf-8":return Te(this,e,t,a);case"ascii":return Se(this,e,t,a);case"latin1":case"binary":return Ce(this,e,t,a);case"base64":return ke(this,e,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xe(this,e,t,a);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}}),"write"),oe.prototype.toJSON=o((function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}}),"toJSON"),o(Ae,"base64Slice"),o(_e,"utf8Slice"),ot=4096,o(Re,"decodeCodePointsArray"),o(Fe,"asciiSlice"),o(Ne,"latin1Slice"),o(Ie,"hexSlice"),o(Me,"utf16leSlice"),oe.prototype.slice=o((function(e,t){var a,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),oe.TYPED_ARRAY_SUPPORT)(a=this.subarray(e,t)).__proto__=oe.prototype;else{var r=t-e;a=new oe(r,void 0);for(var i=0;i<r;++i)a[i]=this[i+e]}return a}),"slice"),o(Pe,"checkOffset"),oe.prototype.readUIntLE=o((function(e,t,a){e|=0,t|=0,a||Pe(e,t,this.length);for(var n=this[e],r=1,i=0;++i<t&&(r*=256);)n+=this[e+i]*r;return n}),"readUIntLE"),oe.prototype.readUIntBE=o((function(e,t,a){e|=0,t|=0,a||Pe(e,t,this.length);for(var n=this[e+--t],r=1;t>0&&(r*=256);)n+=this[e+--t]*r;return n}),"readUIntBE"),oe.prototype.readUInt8=o((function(e,t){return t||Pe(e,1,this.length),this[e]}),"readUInt8"),oe.prototype.readUInt16LE=o((function(e,t){return t||Pe(e,2,this.length),this[e]|this[e+1]<<8}),"readUInt16LE"),oe.prototype.readUInt16BE=o((function(e,t){return t||Pe(e,2,this.length),this[e]<<8|this[e+1]}),"readUInt16BE"),oe.prototype.readUInt32LE=o((function(e,t){return t||Pe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]}),"readUInt32LE"),oe.prototype.readUInt32BE=o((function(e,t){return t||Pe(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])}),"readUInt32BE"),oe.prototype.readIntLE=o((function(e,t,a){e|=0,t|=0,a||Pe(e,t,this.length);for(var n=this[e],r=1,i=0;++i<t&&(r*=256);)n+=this[e+i]*r;return n>=(r*=128)&&(n-=Math.pow(2,8*t)),n}),"readIntLE"),oe.prototype.readIntBE=o((function(e,t,a){e|=0,t|=0,a||Pe(e,t,this.length);for(var n=t,r=1,i=this[e+--n];n>0&&(r*=256);)i+=this[e+--n]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i}),"readIntBE"),oe.prototype.readInt8=o((function(e,t){return t||Pe(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]}),"readInt8"),oe.prototype.readInt16LE=o((function(e,t){t||Pe(e,2,this.length);var a=this[e]|this[e+1]<<8;return 32768&a?4294901760|a:a}),"readInt16LE"),oe.prototype.readInt16BE=o((function(e,t){t||Pe(e,2,this.length);var a=this[e+1]|this[e]<<8;return 32768&a?4294901760|a:a}),"readInt16BE"),oe.prototype.readInt32LE=o((function(e,t){return t||Pe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24}),"readInt32LE"),oe.prototype.readInt32BE=o((function(e,t){return t||Pe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]}),"readInt32BE"),oe.prototype.readFloatLE=o((function(e,t){return t||Pe(e,4,this.length),ae(this,e,!0,23,4)}),"readFloatLE"),oe.prototype.readFloatBE=o((function(e,t){return t||Pe(e,4,this.length),ae(this,e,!1,23,4)}),"readFloatBE"),oe.prototype.readDoubleLE=o((function(e,t){return t||Pe(e,8,this.length),ae(this,e,!0,52,8)}),"readDoubleLE"),oe.prototype.readDoubleBE=o((function(e,t){return t||Pe(e,8,this.length),ae(this,e,!1,52,8)}),"readDoubleBE"),o(Le,"checkInt"),oe.prototype.writeUIntLE=o((function(e,t,a,n){(e=+e,t|=0,a|=0,n)||Le(this,e,t,a,Math.pow(2,8*a)-1,0);var r=1,i=0;for(this[t]=255&e;++i<a&&(r*=256);)this[t+i]=e/r&255;return t+a}),"writeUIntLE"),oe.prototype.writeUIntBE=o((function(e,t,a,n){(e=+e,t|=0,a|=0,n)||Le(this,e,t,a,Math.pow(2,8*a)-1,0);var r=a-1,i=1;for(this[t+r]=255&e;--r>=0&&(i*=256);)this[t+r]=e/i&255;return t+a}),"writeUIntBE"),oe.prototype.writeUInt8=o((function(e,t,a){return e=+e,t|=0,a||Le(this,e,t,1,255,0),oe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1}),"writeUInt8"),o(Oe,"objectWriteUInt16"),oe.prototype.writeUInt16LE=o((function(e,t,a){return e=+e,t|=0,a||Le(this,e,t,2,65535,0),oe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Oe(this,e,t,!0),t+2}),"writeUInt16LE"),oe.prototype.writeUInt16BE=o((function(e,t,a){return e=+e,t|=0,a||Le(this,e,t,2,65535,0),oe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Oe(this,e,t,!1),t+2}),"writeUInt16BE"),o(je,"objectWriteUInt32"),oe.prototype.writeUInt32LE=o((function(e,t,a){return e=+e,t|=0,a||Le(this,e,t,4,4294967295,0),oe.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):je(this,e,t,!0),t+4}),"writeUInt32LE"),oe.prototype.writeUInt32BE=o((function(e,t,a){return e=+e,t|=0,a||Le(this,e,t,4,4294967295,0),oe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):je(this,e,t,!1),t+4}),"writeUInt32BE"),oe.prototype.writeIntLE=o((function(e,t,a,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*a-1);Le(this,e,t,a,r-1,-r)}var i=0,o=1,s=0;for(this[t]=255&e;++i<a&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+a}),"writeIntLE"),oe.prototype.writeIntBE=o((function(e,t,a,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*a-1);Le(this,e,t,a,r-1,-r)}var i=a-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+a}),"writeIntBE"),oe.prototype.writeInt8=o((function(e,t,a){return e=+e,t|=0,a||Le(this,e,t,1,127,-128),oe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1}),"writeInt8"),oe.prototype.writeInt16LE=o((function(e,t,a){return e=+e,t|=0,a||Le(this,e,t,2,32767,-32768),oe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Oe(this,e,t,!0),t+2}),"writeInt16LE"),oe.prototype.writeInt16BE=o((function(e,t,a){return e=+e,t|=0,a||Le(this,e,t,2,32767,-32768),oe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Oe(this,e,t,!1),t+2}),"writeInt16BE"),oe.prototype.writeInt32LE=o((function(e,t,a){return e=+e,t|=0,a||Le(this,e,t,4,2147483647,-2147483648),oe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):je(this,e,t,!0),t+4}),"writeInt32LE"),oe.prototype.writeInt32BE=o((function(e,t,a){return e=+e,t|=0,a||Le(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),oe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):je(this,e,t,!1),t+4}),"writeInt32BE"),o(Ue,"checkIEEE754"),o(Be,"writeFloat"),oe.prototype.writeFloatLE=o((function(e,t,a){return Be(this,e,t,!0,a)}),"writeFloatLE"),oe.prototype.writeFloatBE=o((function(e,t,a){return Be(this,e,t,!1,a)}),"writeFloatBE"),o(qe,"writeDouble"),oe.prototype.writeDoubleLE=o((function(e,t,a){return qe(this,e,t,!0,a)}),"writeDoubleLE"),oe.prototype.writeDoubleBE=o((function(e,t,a){return qe(this,e,t,!1,a)}),"writeDoubleBE"),oe.prototype.copy=o((function(e,t,a,n){if(a||(a=0),!n&&0!==n&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<a&&(n=a),n===a||0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-a&&(n=e.length-t+a);var r,i=n-a;if(this===e&&a<t&&t<n)for(r=i-1;r>=0;--r)e[r+t]=this[r+a];else if(i<1e3||!oe.TYPED_ARRAY_SUPPORT)for(r=0;r<i;++r)e[r+t]=this[r+a];else Uint8Array.prototype.set.call(e,this.subarray(a,a+i),t);return i}),"copy"),oe.prototype.fill=o((function(e,t,a,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,a=this.length):"string"==typeof a&&(n=a,a=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!oe.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<a)throw new RangeError("Out of range index");if(a<=t)return this;var i;if(t>>>=0,a=void 0===a?this.length:a>>>0,e||(e=0),"number"==typeof e)for(i=t;i<a;++i)this[i]=e;else{var o=fe(e)?e:He(new oe(e,n).toString()),s=o.length;for(i=0;i<a-t;++i)this[i+t]=o[i%s]}return this}),"fill"),st=/[^+\/0-9A-Za-z-_]/g,o(ze,"base64clean"),o(Ve,"stringtrim"),o(We,"toHex"),o(He,"utf8ToBytes"),o(Ge,"asciiToBytes"),o($e,"utf16leToBytes"),o(Ke,"base64ToBytes"),o(Ye,"blitBuffer"),o(Je,"isnan"),o(Ze,"isBuffer"),o(Xe,"isFastBuffer"),o(Qe,"isSlowBuffer")}));function ct(){}function ut(){ut.init.call(this)}function dt(e){return void 0===e._maxListeners?ut.defaultMaxListeners:e._maxListeners}function mt(e,t,a){if(t)e.call(a);else for(var n=e.length,r=Et(e,n),i=0;i<n;++i)r[i].call(a)}function pt(e,t,a,n){if(t)e.call(a,n);else for(var r=e.length,i=Et(e,r),o=0;o<r;++o)i[o].call(a,n)}function ht(e,t,a,n,r){if(t)e.call(a,n,r);else for(var i=e.length,o=Et(e,i),s=0;s<i;++s)o[s].call(a,n,r)}function gt(e,t,a,n,r,i){if(t)e.call(a,n,r,i);else for(var o=e.length,s=Et(e,o),l=0;l<o;++l)s[l].call(a,n,r,i)}function ft(e,t,a,n){if(t)e.apply(a,n);else for(var r=e.length,i=Et(e,r),o=0;o<r;++o)i[o].apply(a,n)}function yt(e,t,a,n){var r,i,o;if("function"!=typeof a)throw new TypeError('"listener" argument must be a function');if((i=e._events)?(i.newListener&&(e.emit("newListener",t,a.listener?a.listener:a),i=e._events),o=i[t]):(i=e._events=new ct,e._eventsCount=0),o){if("function"==typeof o?o=i[t]=n?[a,o]:[o,a]:n?o.unshift(a):o.push(a),!o.warned&&((r=dt(e))&&r>0&&o.length>r)){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,vt(s)}}else o=i[t]=a,++e._eventsCount;return e}function vt(e){"function"==typeof console.warn?console.warn(e):console.log(e)}function bt(e,t,a){var n=!1;function r(){e.removeListener(t,r),n||(n=!0,a.apply(e,arguments))}return o(r,"g"),r.listener=a,r}function wt(e){var t=this._events;if(t){var a=t[e];if("function"==typeof a)return 1;if(a)return a.length}return 0}function Dt(e,t){for(var a=t,n=a+1,r=e.length;n<r;a+=1,n+=1)e[a]=e[n];e.pop()}function Et(e,t){for(var a=new Array(t);t--;)a[t]=e[t];return a}function Tt(e){for(var t=new Array(e.length),a=0;a<t.length;++a)t[a]=e[a].listener||e[a];return t}var St,Ct,kt=s((()=>{J(),o(ct,"EventHandlers"),ct.prototype=Object.create(null),o(ut,"EventEmitter"),Ct=ut,ut.EventEmitter=ut,ut.usingDomains=!1,ut.prototype.domain=void 0,ut.prototype._events=void 0,ut.prototype._maxListeners=void 0,ut.defaultMaxListeners=10,ut.init=function(){this.domain=null,ut.usingDomains&&St.active&&!(this instanceof St.Domain)&&(this.domain=St.active),(!this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=new ct,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ut.prototype.setMaxListeners=o((function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this}),"setMaxListeners"),o(dt,"$getMaxListeners"),ut.prototype.getMaxListeners=o((function(){return dt(this)}),"getMaxListeners"),o(mt,"emitNone"),o(pt,"emitOne"),o(ht,"emitTwo"),o(gt,"emitThree"),o(ft,"emitMany"),ut.prototype.emit=o((function(e){var t,a,n,r,i,o,s,l="error"===e;if(o=this._events)l=l&&null==o.error;else if(!l)return!1;if(s=this.domain,l){if(t=arguments[1],!s){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(a=o[e]))return!1;var u="function"==typeof a;switch(n=arguments.length){case 1:mt(a,u,this);break;case 2:pt(a,u,this,arguments[1]);break;case 3:ht(a,u,this,arguments[1],arguments[2]);break;case 4:gt(a,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(r=new Array(n-1),i=1;i<n;i++)r[i-1]=arguments[i];ft(a,u,this,r)}return!0}),"emit"),o(yt,"_addListener"),o(vt,"emitWarning"),ut.prototype.addListener=o((function(e,t){return yt(this,e,t,!1)}),"addListener"),ut.prototype.on=ut.prototype.addListener,ut.prototype.prependListener=o((function(e,t){return yt(this,e,t,!0)}),"prependListener"),o(bt,"_onceWrap"),ut.prototype.once=o((function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,bt(this,e,t)),this}),"once"),ut.prototype.prependOnceListener=o((function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,bt(this,e,t)),this}),"prependOnceListener"),ut.prototype.removeListener=o((function(e,t){var a,n,r,i,o;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(a=n[e]))return this;if(a===t||a.listener&&a.listener===t)0==--this._eventsCount?this._events=new ct:(delete n[e],n.removeListener&&this.emit("removeListener",e,a.listener||t));else if("function"!=typeof a){for(r=-1,i=a.length;i-- >0;)if(a[i]===t||a[i].listener&&a[i].listener===t){o=a[i].listener,r=i;break}if(r<0)return this;if(1===a.length){if(a[0]=void 0,0==--this._eventsCount)return this._events=new ct,this;delete n[e]}else Dt(a,r);n.removeListener&&this.emit("removeListener",e,o||t)}return this}),"removeListener"),ut.prototype.off=function(e,t){return this.removeListener(e,t)},ut.prototype.removeAllListeners=o((function(e){var t,a;if(!(a=this._events))return this;if(!a.removeListener)return 0===arguments.length?(this._events=new ct,this._eventsCount=0):a[e]&&(0==--this._eventsCount?this._events=new ct:delete a[e]),this;if(0===arguments.length){for(var n,r=Object.keys(a),i=0;i<r.length;++i)"removeListener"!==(n=r[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new ct,this._eventsCount=0,this}if("function"==typeof(t=a[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this}),"removeAllListeners"),ut.prototype.listeners=o((function(e){var t,a,n=this._events;return n?a=(t=n[e])?"function"==typeof t?[t.listener||t]:Tt(t):[]:a=[],a}),"listeners"),ut.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):wt.call(e,t)},ut.prototype.listenerCount=wt,o(wt,"listenerCount"),ut.prototype.eventNames=o((function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}),"eventNames"),o(Dt,"spliceOne"),o(Et,"arrayClone"),o(Tt,"unwrapListeners")})),xt=l(((e,t)=>{J();var a=1e3,n=6e4,r=60*n,i=24*r;function s(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var o=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*i;case"hours":case"hour":case"hrs":case"hr":case"h":return o*r;case"minutes":case"minute":case"mins":case"min":case"m":return o*n;case"seconds":case"second":case"secs":case"sec":case"s":return o*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}function l(e){var t=Math.abs(e);return t>=i?Math.round(e/i)+"d":t>=r?Math.round(e/r)+"h":t>=n?Math.round(e/n)+"m":t>=a?Math.round(e/a)+"s":e+"ms"}function c(e){var t=Math.abs(e);return t>=i?u(e,t,i,"day"):t>=r?u(e,t,r,"hour"):t>=n?u(e,t,n,"minute"):t>=a?u(e,t,a,"second"):e+" ms"}function u(e,t,a,n){var r=t>=1.5*a;return Math.round(e/a)+" "+n+(r?"s":"")}t.exports=function(e,t){t=t||{};var a=typeof e;if("string"===a&&e.length>0)return s(e);if("number"===a&&isFinite(e))return t.long?c(e):l(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))},o(s,"parse"),o(l,"fmtShort"),o(c,"fmtLong"),o(u,"plural")})),At=l(((e,t)=>{function a(e){function t(e){let t=0;for(let a=0;a<e.length;a++)t=(t<<5)-t+e.charCodeAt(a),t|=0;return a.colors[Math.abs(t)%a.colors.length]}function a(e){let t,r,i,s=null;function l(...e){if(!l.enabled)return;let n=l,r=Number(new Date),i=r-(t||r);n.diff=i,n.prev=t,n.curr=r,t=r,e[0]=a.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,r)=>{if("%%"===t)return"%";o++;let i=a.formatters[r];if("function"==typeof i){let a=e[o];t=i.call(n,a),e.splice(o,1),o--}return t})),a.formatArgs.call(n,e),(n.log||a.log).apply(n,e)}return o(l,"debug"),l.namespace=e,l.useColors=a.useColors(),l.color=a.selectColor(e),l.extend=n,l.destroy=a.destroy,Object.defineProperty(l,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==a.namespaces&&(r=a.namespaces,i=a.enabled(e)),i),set:e=>{s=e}}),"function"==typeof a.init&&a.init(l),l}function n(e,t){let n=a(this.namespace+(typeof t>"u"?":":t)+e);return n.log=this.log,n}function r(e){a.save(e),a.namespaces=e,a.names=[],a.skips=[];let t,n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?a.skips.push(new RegExp("^"+e.slice(1)+"$")):a.names.push(new RegExp("^"+e+"$")))}function i(){let e=[...a.names.map(l),...a.skips.map(l).map((e=>"-"+e))].join(",");return a.enable(""),e}function s(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=a.skips.length;t<n;t++)if(a.skips[t].test(e))return!1;for(t=0,n=a.names.length;t<n;t++)if(a.names[t].test(e))return!0;return!1}function l(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function c(e){return e instanceof Error?e.stack||e.message:e}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`.")}return a.debug=a,a.default=a,a.coerce=c,a.disable=i,a.enable=r,a.enabled=s,a.humanize=xt(),a.destroy=u,Object.keys(e).forEach((t=>{a[t]=e[t]})),a.names=[],a.skips=[],a.formatters={},o(t,"selectColor"),a.selectColor=t,o(a,"createDebug"),o(n,"extend"),o(r,"enable"),o(i,"disable"),o(s,"enabled"),o(l,"toNamespace"),o(c,"coerce"),o(u,"destroy"),a.enable(a.load()),a}J(),o(a,"setup"),t.exports=a})),_t=l(((e,t)=>{function a(){return!(!(typeof window<"u"&&window.process)||"renderer"!==window.process.type&&!window.process.__nwjs)||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(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+)/))}function n(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let a="color: "+this.color;e.splice(1,0,a,"color: inherit");let n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(r=n))})),e.splice(r,0,a)}function r(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch{}}function i(){let t;try{t=e.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function s(){try{return localStorage}catch{}}J(),e.formatArgs=n,e.save=r,e.load=i,e.useColors=a,e.storage=s(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})(),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"],o(a,"useColors"),o(n,"formatArgs"),e.log=console.debug||console.log||(()=>{}),o(r,"save"),o(i,"load"),o(s,"localstorage"),t.exports=At()(e);var{formatters:l}=t.exports;l.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}));function Rt(e){if(!e)throw new Error("name must be non-empty")}function Ft(e,t){for(var a,n=0,r=e.length;n<r;)e[a=n+r>>>1].startTime<t.startTime?n=a+1:r=a;e.splice(n,0,t)}var Nt,It,Mt,Pt,Lt,Ot,jt,Ut,Bt,qt,zt,Vt,Wt,Ht,Gt,$t,Kt,Yt,Jt,Zt,Xt,Qt=s((()=>{J(),Nt=typeof performance<"u"&&performance,It=Nt&&Nt.now?function(){return Nt.now()}:function(){return Date.now()},o(Rt,"throwIfEmpty"),o(Ft,"insertSorted"),Nt&&Nt.mark&&Nt.getEntriesByName&&Nt.getEntriesByType&&Nt.clearMeasures?(Mt=o((function(e){Rt(e),Nt.mark("start "+e)}),"mark"),Pt=o((function(e){Rt(e),Nt.mark("end "+e),Nt.measure(e,"start "+e,"end "+e);var t=Nt.getEntriesByName(e);return t[t.length-1]}),"stop"),Lt=o((function(){return Nt.getEntriesByType("measure")}),"getEntries"),Ot=o((function(){Nt.clearMarks(),Nt.clearMeasures()}),"clear")):(jt={},Ut=[],Mt=o((function(e){Rt(e);var t=It();jt["$"+e]=t}),"mark"),Pt=o((function(e){Rt(e);var t=It(),a=jt["$"+e];if(!a)throw new Error("no known mark: "+e);var n={startTime:a,name:e,duration:t-a,entryType:"measure"};return Ft(Ut,n),n}),"stop"),Lt=o((function(){return Ut}),"getEntries"),Ot=o((function(){jt={},Ut=[]}),"clear"))})),ea=s((()=>{J(),Y(),kt(),Bt=d(_t()),Qt(),qt="win32"===K.platform,zt=K.browser,Vt={red:zt?"crimson":1,yellow:zt?"gold":3,cyan:zt?"darkturquoise":6,green:zt?"forestgreen":2,blue:zt?"steelblue":4,magenta:zt?"palevioletred":5},Bt.default.colors=[Vt.cyan,Vt.green,Vt.blue,Vt.magenta],Wt=class extends ut{static{o(this,"Emitter")}issueStatus(e,t){("status"===e||"statusEnd"===e)&&this.emit(e,[e,...t])}issueWarning(e,t){this.emit("warning",[e,...t])}},Ht={},25,($t=class e{static{o(this,"Log")}static _logToStdErr(t,a){e.loggerfn(t)(...a)}static loggerfn(e){let t=Ht[e=`LH:${e}`];return t||(t=(0,Bt.default)(e),Ht[e]=t,e.endsWith("error")?t.color=Vt.red:e.endsWith("warn")&&(t.color=Vt.yellow)),t}static setLevel(e){switch(Gt=e,e){case"silent":Bt.default.enable("-LH:*");break;case"verbose":Bt.default.enable("LH:*");break;case"warn":Bt.default.enable("-LH:*, LH:*:warn, LH:*:error");break;case"error":Bt.default.enable("-LH:*, LH:*:error");break;default:Bt.default.enable("LH:*, -LH:*:verbose")}}static formatProtocol(t,a,n){let r=!K||K.browser?1/0:K.stdout.columns,i=a.method||"?????",o=r-i.length-t.length-25,s=a.params&&"IO.read"!==i?JSON.stringify(a.params).substr(0,o):"";e._logToStdErr(`${t}:${n||""}`,[i,s])}static isVerbose(){return"verbose"===Gt}static time({msg:t,id:a,args:n=[]},r="log"){Mt(a),e[r]("status",t,...n)}static timeEnd({msg:t,id:a,args:n=[]},r="verbose"){e[r]("statusEnd",t,...n),Pt(a)}static log(t,...a){return e.events.issueStatus(t,a),e._logToStdErr(t,a)}static warn(t,...a){return e.events.issueWarning(t,a),e._logToStdErr(`${t}:warn`,a)}static error(t,...a){return e._logToStdErr(`${t}:error`,a)}static verbose(t,...a){return e.events.issueStatus(t,a),e._logToStdErr(`${t}:verbose`,a)}static greenify(t){return`${e.green}${t}${e.reset}`}static redify(t){return`${e.red}${t}${e.reset}`}static get green(){return"[32m"}static get red(){return"[31m"}static get yellow(){return"[33m"}static get purple(){return"[95m"}static get reset(){return"[0m"}static get bold(){return"[1m"}static get dim(){return"[2m"}static get tick(){return qt?"√":"✓"}static get cross(){return qt?"×":"✘"}static get whiteSmallSquare(){return qt?"·":"▫"}static get heavyHorizontal(){return qt?"─":"━"}static get heavyVertical(){return qt?"│ ":"┃ "}static get heavyUpAndRight(){return qt?"└":"┗"}static get heavyVerticalAndRight(){return qt?"├":"┣"}static get heavyDownAndHorizontal(){return qt?"┬":"┳"}static get doubleLightHorizontal(){return"──"}}).events=new Wt,$t.takeTimeEntries=()=>{let e=Lt();return Ot(),e},$t.getTimeEntries=()=>Lt(),Kt=$t})),ta=s((()=>{J()})),aa=s((()=>{J(),ta(),Yt=class{static{o(this,"BaseGatherer")}meta={supportedModes:[]};startInstrumentation(e){}startSensitiveInstrumentation(e){}stopSensitiveInstrumentation(e){}stopInstrumentation(e){}getArtifact(e){}},Jt=Yt})),na=s((()=>{J(),ea(),Zt=/^(chrome|https?):/,16,"RunTask","ThreadControllerImpl::RunTask","ThreadControllerImpl::DoWork","TaskQueueManager::ProcessTaskFromWorkQueue",Xt=class e{static{o(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"navigationStart"===e.name&&(void 0===e.args.data?.documentLoaderURL||!!e.args.data?.documentLoaderURL&&Zt.test(e.args.data.documentLoaderURL))}static _sortTimestampEventGroup(e,t,a,n){let r=o((e=>t[e]),"lookupArrayIndexByTsIndex"),i=o((e=>n[r(e)]),"lookupEventByTsIndex"),s=[],l=[],c=[];for(let t of e){let e=r(t),a=i(t);"E"===a.ph?s.push(e):"X"===a.ph||"B"===a.ph?l.push(e):c.push(e)}let u=new Map;for(let r of l){let o=n[r];if("X"===o.ph)u.set(r,o.dur);else{let n=Number.MAX_SAFE_INTEGER,s=0;for(let r=a+e.length;r<t.length;r++){let e=i(r);if(e.name===o.name&&e.pid===o.pid&&e.tid===o.tid){if("E"===e.ph&&0===s){n=e.ts-o.ts;break}"E"===e.ph?s--:"B"===e.ph&&s++}}u.set(r,n)}}return l.sort(((e,t)=>(u.get(t)||0)-(u.get(e)||0)||e-t)),c.sort(((e,t)=>e-t)),[...s,...l,...c]}static filteredTraceSort(t,a){let n=[];for(let e=0;e<t.length;e++)a(t[e])&&n.push(e);n.sort(((e,a)=>t[e].ts-t[a].ts));for(let a=0;a<n.length-1;a++){let r=t[n[a]].ts,i=[a];for(let e=a+1;e<n.length&&t[n[e]].ts===r;e++)i.push(e);if(1===i.length)continue;let o=e._sortTimestampEventGroup(i,n,a,t);n.splice(a,o.length,...o),a+=i.length-1}let r=[];for(let e=0;e<n.length;e++)r.push(t[n[e]]);return r}static assertHasToplevelEvents(e){if(!e.some(this.isScheduleableTask))throw new Error("Could not find any top level events")}static _riskPercentiles(e,t,a,n=0){let r=0;for(let t=0;t<e.length;t++)r+=e[t];r-=n;let i=t-r,o=0,s=i,l=[],c=-1,u=e.length+1;n>0&&u--;for(let r of a){let a=r*t;for(;s<a&&c<e.length-1;)i+=o,u-=o<0?-1:1,n>0&&n<e[c+1]?(o=-n,n=0):(c++,o=e[c]),s=i+Math.abs(o)*u;l.push({percentile:r,time:Math.max(0,(a-i)/u)+16})}return l}static getRiskToResponsiveness(e,t,a,n=[.5,.75,.9,.99,1]){let r=a-t;n.sort(((e,t)=>e-t));let i=this.getMainThreadTopLevelEventDurations(e,t,a);return this._riskPercentiles(i.durations,r,n,i.clippedLength)}static getMainThreadTopLevelEventDurations(e,t=0,a=1/0){let n=[],r=0;for(let i of e){if(i.end<t||i.start>a)continue;let e=i.duration,o=i.start;o<t&&(o=t,e=i.end-t),i.end>a&&(r=e-(a-o)),n.push(e)}return n.sort(((e,t)=>e-t)),{durations:n,clippedLength:r}}static getMainThreadTopLevelEvents(e,t=0,a=1/0){let n=[];for(let r of e.mainThreadEvents){if(!this.isScheduleableTask(r)||!r.dur)continue;let i=(r.ts-e.timeOriginEvt.ts)/1e3,o=(r.ts+r.dur-e.timeOriginEvt.ts)/1e3;i>a||o<t||n.push({start:i,end:o,duration:r.dur/1e3})}return n}static findMainFrameIds(e){let t=e.find((e=>"TracingStartedInBrowser"===e.name));if(t?.args.data?.frames){let e=t.args.data.frames.find((e=>!e.parent)),a=e?.frame,n=e?.processId;if(n&&a)return{startingPid:n,frameId:a}}let a=e.find((e=>"TracingStartedInPage"===e.name));if(a?.args?.data){let e=a.args.data.page;if(e)return{startingPid:a.pid,frameId:e}}let n=e.find((e=>this._isNavigationStartOfInterest(e)&&e.args.data?.isLoadingMainFrame)),r=e.find((e=>"ResourceSendRequest"===e.name));if(n?.args?.data&&r&&r.pid===n.pid&&r.tid===n.tid){let e=n.args.frame;if(e)return{startingPid:n.pid,frameId:e}}throw this.createNoTracingStartedError()}static findMainFramePidTids(e,t){let a=t.filter((t=>("FrameCommittedInBrowser"===t.name||"ProcessReadyInBrowser"===t.name)&&t.args?.data?.frame===e.frameId&&t?.args?.data?.processId)),n=a.length?a.map((e=>e?.args?.data?.processId)):[e.startingPid],r=new Map;for(let e of new Set(n)){let a=t.filter((t=>"__metadata"===t.cat&&t.pid===e&&"M"===t.ph&&"thread_name"===t.name)),n=a.find((e=>"CrRendererMain"===e.args.name));n||(n=a.find((e=>"CrBrowserMain"===e.args.name)));let i=n?.tid;if(!i)throw new Error("Unable to determine tid for renderer process");r.set(e,i)}return r}static isScheduleableTask(e){return"RunTask"===e.name||"ThreadControllerImpl::RunTask"===e.name||"ThreadControllerImpl::DoWork"===e.name||"TaskQueueManager::ProcessTaskFromWorkQueue"===e.name}static isLCPEvent(e){return("largestContentfulPaint::Invalidate"===e.name||"largestContentfulPaint::Candidate"===e.name)&&!!e.args?.frame}static isLCPCandidateEvent(e){return!("largestContentfulPaint::Candidate"!==e.name||!e.args?.frame||!e.args.data||void 0===e.args.data.size)}static getFrameId(e){return e.args?.data?.frame||e.args.data?.frameID||e.args.frame}static computeValidLCPAllFrames(e,t){let a,n=e.filter(this.isLCPEvent).reverse(),r=new Map;for(let e of n){if(e.ts<=t.ts)break;let a=e.args.frame;r.has(a)||r.set(a,e)}for(let e of r.values())this.isLCPCandidateEvent(e)&&(!a||e.args.data.size>a.args.data.size)&&(a=e);return{lcp:a,invalidated:!(a||!r.size)}}static resolveRootFrames(e){let t=new Map;for(let a of e)a.parent&&t.set(a.id,a.parent);let a=new Map;for(let n of e){let e=n.id;for(;t.has(e);)e=t.get(e);if(void 0===e)throw new Error("Unexpected undefined frameId");a.set(n.id,e)}return a}static processTrace(t,a){let{timeOriginDeterminationMethod:n="auto"}=a||{},r=this.filteredTraceSort(t.traceEvents,(e=>e.cat.includes("blink.user_timing")||e.cat.includes("loading")||e.cat.includes("devtools.timeline")||"__metadata"===e.cat)),i=this.findMainFrameIds(r),s=this.findMainFramePidTids(i,r),l=e.filteredTraceSort(t.traceEvents,(e=>s.has(e.pid))),c=new Map,u=r.find((e=>"TracingStartedInBrowser"===e.name))?.args?.data?.frames;if(u)for(let e of u)c.set(e.frame,{id:e.frame,url:e.url,parent:e.parent});r.filter((e=>!("FrameCommittedInBrowser"!==e.name||!e.args.data?.frame||void 0===e.args.data.url))).forEach((e=>{c.set(e.args.data.frame,{id:e.args.data.frame,url:e.args.data.url,parent:e.args.data.parent})}));let d=[...c.values()],m=this.resolveRootFrames(d),p=[...m.entries()].filter((([,e])=>e===i.frameId)).map((([e])=>e));function h(t){return e.getFrameId(t)===i.frameId}function g(t){let a=e.getFrameId(t);return!!a&&p.includes(a)}o(h,"associatedToMainFrame"),o(g,"associatedToAllFrames");let f=r.filter((e=>h(e))),y=[];m.has(i.frameId)?y=r.filter((e=>g(e))):(Kt.warn("TraceProcessor","frameTreeEvents may be incomplete, make sure the trace has f