chrome-devtools-frontend
Version:
Chrome DevTools UI
57 lines • 6.27 MB
JavaScript
/**
* Lighthouse v13.1.0 (Apr 06 2026)
*
* Automated auditing, performance metrics, and best practices for the web.
*
* @homepage https://github.com/GoogleChrome/lighthouse#readme
* @author Copyright 2026 Google LLC
* @license Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
"use strict";(()=>{var MV=Object.create;var vl=Object.defineProperty;var AV=Object.getOwnPropertyDescriptor;var IV=Object.getOwnPropertyNames;var PV=Object.getPrototypeOf,LV=Object.prototype.hasOwnProperty;var s=(e,a)=>vl(e,"name",{value:a,configurable:!0});var _=(e,a)=>()=>(e&&(a=e(e=0)),a);var be=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports),S=(e,a)=>{for(var i in a)vl(e,i,{get:a[i],enumerable:!0})},L7=(e,a,i,r)=>{if(a&&typeof a=="object"||typeof a=="function")for(let t of IV(a))!LV.call(e,t)&&t!==i&&vl(e,t,{get:()=>a[t],enumerable:!(r=AV(a,t))||r.enumerable});return e};var yi=(e,a,i)=>(i=e!=null?MV(PV(e)):{},L7(a||!e||!e.__esModule?vl(i,"default",{value:e,enumerable:!0}):i,e)),OV=e=>L7(vl({},"__esModule",{value:!0}),e);function O7(){throw new Error("setTimeout has not been defined")}function N7(){throw new Error("clearTimeout has not been defined")}function F7(e){if(oo===setTimeout)return setTimeout(e,0);if((oo===O7||!oo)&&setTimeout)return oo=setTimeout,setTimeout(e,0);try{return oo(e,0)}catch{try{return oo.call(null,e,0)}catch{return oo.call(this,e,0)}}}function NV(e){if(so===clearTimeout)return clearTimeout(e);if((so===N7||!so)&&clearTimeout)return so=clearTimeout,clearTimeout(e);try{return so(e)}catch{try{return so.call(null,e)}catch{return so.call(this,e)}}}function FV(){!vn||!us||(vn=!1,us.length?xt=us.concat(xt):lh=-1,xt.length&&j7())}function j7(){if(!vn){var e=F7(FV);vn=!0;for(var a=xt.length;a;){for(us=xt,xt=[];++lh<a;)us&&us[lh].run();lh=-1,a=xt.length}us=null,vn=!1,NV(e)}}function wi(e){var a=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)a[i-1]=arguments[i];xt.push(new G7(e,a)),xt.length===1&&!vn&&F7(j7)}function G7(e,a){this.fun=e,this.array=a}function _s(){}
function eq(e){throw new Error("process.binding is not supported")}function aq(){return"/"}function iq(e){throw new Error("process.chdir is not supported")}function rq(){return 0}function oq(e){var a=tq.call(wn)*.001,i=Math.floor(a),r=Math.floor(a%1*1e9);return e&&(i=i-e[0],r=r-e[1],r<0&&(i--,r+=1e9)),[i,r]}function nq(){var e=new Date,a=e-sq;return a/1e3}var oo,so,xt,vn,us,lh,jV,GV,BV,HV,UV,WV,VV,qV,zV,XV,KV,YV,$V,JV,ZV,QV,wn,tq,sq,vi,no=_(()=>{p();s(O7,"defaultSetTimout");s(N7,"defaultClearTimeout");oo=O7,so=N7;typeof globalThis.setTimeout=="function"&&(oo=setTimeout);typeof globalThis.clearTimeout=="function"&&(so=clearTimeout);s(F7,"runTimeout");s(NV,"runClearTimeout");xt=[],vn=!1,lh=-1;s(FV,"cleanUpNextTick");s(j7,"drainQueue");s(wi,"nextTick");s(G7,"Item");G7.prototype.run=function(){this.fun.apply(null,this.array)};jV="browser",GV="browser",BV=!0,HV={},UV=[],WV="",VV={},qV={},zV={};s(_s,"noop");XV=_s,KV=_s,YV=_s,$V=_s,JV=_s,ZV=_s,QV=_s;s(eq,"binding");s(aq,"cwd");s(iq,"chdir");s(
rq,"umask");wn=globalThis.performance||{},tq=wn.now||wn.mozNow||wn.msNow||wn.oNow||wn.webkitNow||function(){return new Date().getTime()};s(oq,"hrtime");sq=new Date;s(nq,"uptime");vi={nextTick:wi,title:jV,browser:BV,env:HV,argv:UV,version:WV,versions:VV,on:XV,addListener:KV,once:YV,off:$V,removeListener:JV,removeAllListeners:ZV,emit:QV,binding:eq,cwd:aq,chdir:iq,umask:rq,hrtime:oq,platform:GV,release:qV,config:zV,uptime:nq}});var p=_(()=>{"use strict";no();globalThis.process=vi});function W7(){O_=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,i=e.length;a<i;++a)Xr[a]=e[a],fr[e.charCodeAt(a)]=a;fr[45]=62,fr[95]=63}function lq(e){O_||W7();var a,i,r,t,o,n,d=e.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=e[d-2]==="="?2:e[d-1]==="="?1:0,n=new dq(d*3/4-o),r=o>0?d-4:d;var l=0;for(a=0,i=0;a<r;a+=4,i+=3)t=fr[e.charCodeAt(a)]<<18|fr[e.charCodeAt(a+1)]<<12|fr[e.charCodeAt(a+2)]<<6|fr[e.charCodeAt(a+3)],n[l++]=t>>16&255,n[l++]=t>>8&255,n[l++]=t&255;return o===2?(t=fr[e.charCodeAt(a)]<<2|fr[e.charCodeAt(a+1)]>>4,n[l++]=t&255):o===1&&(t=fr[e.charCodeAt(a)]<<10|fr[e.charCodeAt(a+1)]<<4|fr[e.charCodeAt(a+2)]>>2,n[l++]=t>>8&255,n[l++]=t&255),n}function cq(e){return Xr[e>>18&63]+Xr[e>>12&63]+Xr[e>>6&63]+Xr[e&63]}function pq(e,a,i){for(var r,t=[],o=a;o<i;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],t.push(cq(r));return t.join("")}function B7(e){O_||W7();for(var a,i=e.length,r=i%3,t="",o=[],n=16383,d=0,l=i-r;d<l;d+=
n)o.push(pq(e,d,d+n>l?l:d+n));return r===1?(a=e[i-1],t+=Xr[a>>2],t+=Xr[a<<4&63],t+="=="):r===2&&(a=(e[i-2]<<8)+e[i-1],t+=Xr[a>>10],t+=Xr[a>>4&63],t+=Xr[a<<2&63],t+="="),o.push(t),o.join("")}function fh(e,a,i,r,t){var o,n,d=t*8-r-1,l=(1<<d)-1,c=l>>1,f=-7,h=i?t-1:0,m=i?-1:1,u=e[a+h];for(h+=m,o=u&(1<<-f)-1,u>>=-f,f+=d;f>0;o=o*256+e[a+h],h+=m,f-=8);for(n=o&(1<<-f)-1,o>>=-f,f+=r;f>0;n=n*256+e[a+h],h+=m,f-=8);if(o===0)o=1-c;else{if(o===l)return n?NaN:(u?-1:1)*(1/0);n=n+Math.pow(2,r),o=o-c}return(u?-1:1)*n*Math.pow(2,o-r)}function V7(e,a,i,r,t,o){var n,d,l,c=o*8-t-1,f=(1<<c)-1,h=f>>1,m=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=r?0:o-1,g=r?1:-1,x=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(d=isNaN(a)?1:0,n=f):(n=Math.floor(Math.log(a)/Math.LN2),a*(l=Math.pow(2,-n))<1&&(n--,l*=2),n+h>=1?a+=m/l:a+=m*Math.pow(2,1-h),a*l>=2&&(n++,l/=2),n+h>=f?(d=0,n=f):n+h>=1?(d=(a*l-1)*Math.pow(2,t),n=n+h):(d=a*Math.pow(2,h-1)*Math.pow(2,t),n=0));t>=8;e[i+u]=d&255,u+=g,d/=256,t-=8);for(n=n<<t|d,c+=
t;c>0;e[i+u]=n&255,u+=g,n/=256,c-=8);e[i+u-g]|=x*128}function ch(){return H.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function yt(e,a){if(ch()<a)throw new RangeError("Invalid typed array length");return H.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(a),e.__proto__=H.prototype):(e===null&&(e=new H(a)),e.length=a),e}function H(e,a,i){if(!H.TYPED_ARRAY_SUPPORT&&!(this instanceof H))return new H(e,a,i);if(typeof e=="number"){if(typeof a=="string")throw new Error("If encoding is specified then the first argument must be a string");return N_(this,e)}return z7(this,e,a,i)}function z7(e,a,i,r){if(typeof a=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&a instanceof ArrayBuffer?_q(e,a,i,r):typeof a=="string"?uq(e,a,i):gq(e,a)}function X7(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function mq(e,a,i,r){return X7(a),a<=0?yt(e,a):i!==void 0?typeof r==
"string"?yt(e,a).fill(i,r):yt(e,a).fill(i):yt(e,a)}function N_(e,a){if(X7(a),e=yt(e,a<0?0:F_(a)|0),!H.TYPED_ARRAY_SUPPORT)for(var i=0;i<a;++i)e[i]=0;return e}function uq(e,a,i){if((typeof i!="string"||i==="")&&(i="utf8"),!H.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var r=K7(a,i)|0;e=yt(e,r);var t=e.write(a,i);return t!==r&&(e=e.slice(0,t)),e}function L_(e,a){var i=a.length<0?0:F_(a.length)|0;e=yt(e,i);for(var r=0;r<i;r+=1)e[r]=a[r]&255;return e}function _q(e,a,i,r){if(a.byteLength,i<0||a.byteLength<i)throw new RangeError("'offset' is out of bounds");if(a.byteLength<i+(r||0))throw new RangeError("'length' is out of bounds");return i===void 0&&r===void 0?a=new Uint8Array(a):r===void 0?a=new Uint8Array(a,i):a=new Uint8Array(a,i,r),H.TYPED_ARRAY_SUPPORT?(e=a,e.__proto__=H.prototype):e=L_(e,a),e}function gq(e,a){if(Kr(a)){var i=F_(a.length)|0;return e=yt(e,i),e.length===0||a.copy(e,0,0,i),e}if(a){if(typeof ArrayBuffer<"u"&&a.buffer instanceof ArrayBuffer||
"length"in a)return typeof a.length!="number"||Nq(a.length)?yt(e,0):L_(e,a);if(a.type==="Buffer"&&q7(a.data))return L_(e,a.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function F_(e){if(e>=ch())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ch().toString(16)+" bytes");return e|0}function Kr(e){return!!(e!=null&&e._isBuffer)}function K7(e,a){if(Kr(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var i=e.length;if(i===0)return 0;for(var r=!1;;)switch(a){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return ph(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return aT(e).length;default:if(r)return ph(e).length;a=(""+a).toLowerCase(),r=!0}}function bq(e,a,i){var r=!1;
if((a===void 0||a<0)&&(a=0),a>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,a>>>=0,i<=a))return"";for(e||(e="utf8");;)switch(e){case"hex":return Rq(this,a,i);case"utf8":case"utf-8":return J7(this,a,i);case"ascii":return Cq(this,a,i);case"latin1":case"binary":return kq(this,a,i);case"base64":return Tq(this,a,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Dq(this,a,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function gs(e,a,i){var r=e[a];e[a]=e[i],e[i]=r}function Y7(e,a,i,r,t){if(e.length===0)return-1;if(typeof i=="string"?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=t?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(t)return-1;i=e.length-1}else if(i<0)if(t)i=0;else return-1;if(typeof a=="string"&&(a=H.from(a,r)),Kr(a))return a.length===0?-1:H7(e,a,i,r,t);if(typeof a=="number")return a=a&255,H.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?
t?Uint8Array.prototype.indexOf.call(e,a,i):Uint8Array.prototype.lastIndexOf.call(e,a,i):H7(e,[a],i,r,t);throw new TypeError("val must be string, number or Buffer")}function H7(e,a,i,r,t){var o=1,n=e.length,d=a.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||a.length<2)return-1;o=2,n/=2,d/=2,i/=2}function l(u,g){return o===1?u[g]:u.readUInt16BE(g*o)}s(l,"read");var c;if(t){var f=-1;for(c=i;c<n;c++)if(l(e,c)===l(a,f===-1?0:c-f)){if(f===-1&&(f=c),c-f+1===d)return f*o}else f!==-1&&(c-=c-f),f=-1}else for(i+d>n&&(i=n-d),c=i;c>=0;c--){for(var h=!0,m=0;m<d;m++)if(l(e,c+m)!==l(a,m)){h=!1;break}if(h)return c}return-1}function xq(e,a,i,r){i=Number(i)||0;var t=e.length-i;r?(r=Number(r),r>t&&(r=t)):r=t;var o=a.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var n=0;n<r;++n){var d=parseInt(a.substr(n*2,2),16);if(isNaN(d))return n;e[i+n]=d}return n}function yq(e,a,i,r){return uh(ph(a,e.length-i),e,
i,r)}function $7(e,a,i,r){return uh(Lq(a),e,i,r)}function wq(e,a,i,r){return $7(e,a,i,r)}function vq(e,a,i,r){return uh(aT(a),e,i,r)}function Sq(e,a,i,r){return uh(Oq(a,e.length-i),e,i,r)}function Tq(e,a,i){return a===0&&i===e.length?B7(e):B7(e.slice(a,i))}function J7(e,a,i){i=Math.min(e.length,i);for(var r=[],t=a;t<i;){var o=e[t],n=null,d=o>239?4:o>223?3:o>191?2:1;if(t+d<=i){var l,c,f,h;switch(d){case 1:o<128&&(n=o);break;case 2:l=e[t+1],(l&192)===128&&(h=(o&31)<<6|l&63,h>127&&(n=h));break;case 3:l=e[t+1],c=e[t+2],(l&192)===128&&(c&192)===128&&(h=(o&15)<<12|(l&63)<<6|c&63,h>2047&&(h<55296||h>57343)&&(n=h));break;case 4:l=e[t+1],c=e[t+2],f=e[t+3],(l&192)===128&&(c&192)===128&&(f&192)===128&&(h=(o&15)<<18|(l&63)<<12|(c&63)<<6|f&63,h>65535&&h<1114112&&(n=h))}}n===null?(n=65533,d=1):n>65535&&(n-=65536,r.push(n>>>10&1023|55296),n=56320|n&1023),r.push(n),t+=d}return Eq(r)}function Eq(e){var a=e.length;if(a<=U7)return String.fromCharCode.apply(String,e);for(var i="",r=0;r<a;)i+=String.fromCharCode.
apply(String,e.slice(r,r+=U7));return i}function Cq(e,a,i){var r="";i=Math.min(e.length,i);for(var t=a;t<i;++t)r+=String.fromCharCode(e[t]&127);return r}function kq(e,a,i){var r="";i=Math.min(e.length,i);for(var t=a;t<i;++t)r+=String.fromCharCode(e[t]);return r}function Rq(e,a,i){var r=e.length;(!a||a<0)&&(a=0),(!i||i<0||i>r)&&(i=r);for(var t="",o=a;o<i;++o)t+=Pq(e[o]);return t}function Dq(e,a,i){for(var r=e.slice(a,i),t="",o=0;o<r.length;o+=2)t+=String.fromCharCode(r[o]+r[o+1]*256);return t}function oi(e,a,i){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+a>i)throw new RangeError("Trying to access beyond buffer length")}function qi(e,a,i,r,t,o){if(!Kr(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>t||a<o)throw new RangeError('"value" argument is out of bounds');if(i+r>e.length)throw new RangeError("Index out of range")}function hh(e,a,i,r){a<0&&(a=65535+a+1);for(var t=0,o=Math.min(e.length-i,2);t<o;++t)e[i+t]=(a&255<<8*(r?t:1-t))>>>(r?t:1-t)*
8}function mh(e,a,i,r){a<0&&(a=4294967295+a+1);for(var t=0,o=Math.min(e.length-i,4);t<o;++t)e[i+t]=a>>>(r?t:3-t)*8&255}function Z7(e,a,i,r,t,o){if(i+r>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function Q7(e,a,i,r,t){return t||Z7(e,a,i,4),V7(e,a,i,r,23,4),i+4}function eT(e,a,i,r,t){return t||Z7(e,a,i,8),V7(e,a,i,r,52,8),i+8}function Aq(e){if(e=Iq(e).replace(Mq,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Iq(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Pq(e){return e<16?"0"+e.toString(16):e.toString(16)}function ph(e,a){a=a||1/0;for(var i,r=e.length,t=null,o=[],n=0;n<r;++n){if(i=e.charCodeAt(n),i>55295&&i<57344){if(!t){if(i>56319){(a-=3)>-1&&o.push(239,191,189);continue}else if(n+1===r){(a-=3)>-1&&o.push(239,191,189);continue}t=i;continue}if(i<56320){(a-=3)>-1&&o.push(239,191,189),t=i;continue}i=(t-55296<<10|i-56320)+65536}else t&&(a-=3)>-1&&o.push(239,191,189);if(t=null,i<128){if((a-=1)<
0)break;o.push(i)}else if(i<2048){if((a-=2)<0)break;o.push(i>>6|192,i&63|128)}else if(i<65536){if((a-=3)<0)break;o.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((a-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return o}function Lq(e){for(var a=[],i=0;i<e.length;++i)a.push(e.charCodeAt(i)&255);return a}function Oq(e,a){for(var i,r,t,o=[],n=0;n<e.length&&!((a-=2)<0);++n)i=e.charCodeAt(n),r=i>>8,t=i%256,o.push(t),o.push(r);return o}function aT(e){return lq(Aq(e))}function uh(e,a,i,r){for(var t=0;t<r&&!(t+i>=a.length||t>=e.length);++t)a[t+i]=e[t];return t}function Nq(e){return e!==e}function Fq(e){return e!=null&&(!!e._isBuffer||iT(e)||jq(e))}function iT(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function jq(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&iT(e.slice(0,0))}var Xr,fr,dq,O_,fq,q7,hq,U2e,U7,Mq,Sl=_(()=>{p();Xr=[],fr=[],dq=typeof Uint8Array<
"u"?Uint8Array:Array,O_=!1;s(W7,"init");s(lq,"toByteArray");s(cq,"tripletToBase64");s(pq,"encodeChunk");s(B7,"fromByteArray");s(fh,"read");s(V7,"write");fq={}.toString,q7=Array.isArray||function(e){return fq.call(e)=="[object Array]"};hq=50;H.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;U2e=ch();s(ch,"kMaxLength");s(yt,"createBuffer");s(H,"Buffer");H.poolSize=8192;H._augment=function(e){return e.__proto__=H.prototype,e};s(z7,"from");H.from=function(e,a,i){return z7(null,e,a,i)};H.TYPED_ARRAY_SUPPORT&&(H.prototype.__proto__=Uint8Array.prototype,H.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&H[Symbol.species]);s(X7,"assertSize");s(mq,"alloc");H.alloc=function(e,a,i){return mq(null,e,a,i)};s(N_,"allocUnsafe");H.allocUnsafe=function(e){return N_(null,e)};H.allocUnsafeSlow=function(e){return N_(null,e)};s(uq,"fromString");s(L_,"fromArrayLike");s(_q,"fromArrayBuffer");s(gq,"fromObject");s(F_,"checked");H.isBuffer=Fq;s(Kr,"internalIs\
Buffer");H.compare=s(function(a,i){if(!Kr(a)||!Kr(i))throw new TypeError("Arguments must be Buffers");if(a===i)return 0;for(var r=a.length,t=i.length,o=0,n=Math.min(r,t);o<n;++o)if(a[o]!==i[o]){r=a[o],t=i[o];break}return r<t?-1:t<r?1:0},"compare");H.isEncoding=s(function(a){switch(String(a).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(a,i){if(!q7(a))throw new TypeError('"list" argument must be an Array of Buffers');if(a.length===0)return H.alloc(0);var r;if(i===void 0)for(i=0,r=0;r<a.length;++r)i+=a[r].length;var t=H.allocUnsafe(i),o=0;for(r=0;r<a.length;++r){var n=a[r];if(!Kr(n))throw new TypeError('"list" argument must be an Array of Buffers');n.copy(t,o),o+=n.length}return t},"concat");s(K7,"byteLength");H.byteLength=K7;s(bq,"slowToString");H.prototype._isBuffer=!0;s(gs,"swap");H.prototype.swap16=s(function(){var a=this.
length;if(a%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<a;i+=2)gs(this,i,i+1);return this},"swap16");H.prototype.swap32=s(function(){var a=this.length;if(a%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<a;i+=4)gs(this,i,i+3),gs(this,i+1,i+2);return this},"swap32");H.prototype.swap64=s(function(){var a=this.length;if(a%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<a;i+=8)gs(this,i,i+7),gs(this,i+1,i+6),gs(this,i+2,i+5),gs(this,i+3,i+4);return this},"swap64");H.prototype.toString=s(function(){var a=this.length|0;return a===0?"":arguments.length===0?J7(this,0,a):bq.apply(this,arguments)},"toString");H.prototype.equals=s(function(a){if(!Kr(a))throw new TypeError("Argument must be a Buffer");return this===a?!0:H.compare(this,a)===0},"equals");H.prototype.inspect=s(function(){var a="",i=hq;return this.length>0&&(a=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>
i&&(a+=" ... ")),"<Buffer "+a+">"},"inspect");H.prototype.compare=s(function(a,i,r,t,o){if(!Kr(a))throw new TypeError("Argument must be a Buffer");if(i===void 0&&(i=0),r===void 0&&(r=a?a.length:0),t===void 0&&(t=0),o===void 0&&(o=this.length),i<0||r>a.length||t<0||o>this.length)throw new RangeError("out of range index");if(t>=o&&i>=r)return 0;if(t>=o)return-1;if(i>=r)return 1;if(i>>>=0,r>>>=0,t>>>=0,o>>>=0,this===a)return 0;for(var n=o-t,d=r-i,l=Math.min(n,d),c=this.slice(t,o),f=a.slice(i,r),h=0;h<l;++h)if(c[h]!==f[h]){n=c[h],d=f[h];break}return n<d?-1:d<n?1:0},"compare");s(Y7,"bidirectionalIndexOf");s(H7,"arrayIndexOf");H.prototype.includes=s(function(a,i,r){return this.indexOf(a,i,r)!==-1},"includes");H.prototype.indexOf=s(function(a,i,r){return Y7(this,a,i,r,!0)},"indexOf");H.prototype.lastIndexOf=s(function(a,i,r){return Y7(this,a,i,r,!1)},"lastIndexOf");s(xq,"hexWrite");s(yq,"utf8Write");s($7,"asciiWrite");s(wq,"latin1Write");s(vq,"base64Write");s(Sq,"ucs2Write");H.prototype.write=
s(function(a,i,r,t){if(i===void 0)t="utf8",r=this.length,i=0;else if(r===void 0&&typeof i=="string")t=i,r=this.length,i=0;else if(isFinite(i))i=i|0,isFinite(r)?(r=r|0,t===void 0&&(t="utf8")):(t=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-i;if((r===void 0||r>o)&&(r=o),a.length>0&&(r<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var n=!1;;)switch(t){case"hex":return xq(this,a,i,r);case"utf8":case"utf-8":return yq(this,a,i,r);case"ascii":return $7(this,a,i,r);case"latin1":case"binary":return wq(this,a,i,r);case"base64":return vq(this,a,i,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sq(this,a,i,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),n=!0}},"write");H.prototype.toJSON=s(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");s(Tq,"base64Slice");s(J7,"utf8\
Slice");U7=4096;s(Eq,"decodeCodePointsArray");s(Cq,"asciiSlice");s(kq,"latin1Slice");s(Rq,"hexSlice");s(Dq,"utf16leSlice");H.prototype.slice=s(function(a,i){var r=this.length;a=~~a,i=i===void 0?r:~~i,a<0?(a+=r,a<0&&(a=0)):a>r&&(a=r),i<0?(i+=r,i<0&&(i=0)):i>r&&(i=r),i<a&&(i=a);var t;if(H.TYPED_ARRAY_SUPPORT)t=this.subarray(a,i),t.__proto__=H.prototype;else{var o=i-a;t=new H(o,void 0);for(var n=0;n<o;++n)t[n]=this[n+a]}return t},"slice");s(oi,"checkOffset");H.prototype.readUIntLE=s(function(a,i,r){a=a|0,i=i|0,r||oi(a,i,this.length);for(var t=this[a],o=1,n=0;++n<i&&(o*=256);)t+=this[a+n]*o;return t},"readUIntLE");H.prototype.readUIntBE=s(function(a,i,r){a=a|0,i=i|0,r||oi(a,i,this.length);for(var t=this[a+--i],o=1;i>0&&(o*=256);)t+=this[a+--i]*o;return t},"readUIntBE");H.prototype.readUInt8=s(function(a,i){return i||oi(a,1,this.length),this[a]},"readUInt8");H.prototype.readUInt16LE=s(function(a,i){return i||oi(a,2,this.length),this[a]|this[a+1]<<8},"readUInt16LE");H.prototype.readUInt16BE=
s(function(a,i){return i||oi(a,2,this.length),this[a]<<8|this[a+1]},"readUInt16BE");H.prototype.readUInt32LE=s(function(a,i){return i||oi(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+this[a+3]*16777216},"readUInt32LE");H.prototype.readUInt32BE=s(function(a,i){return i||oi(a,4,this.length),this[a]*16777216+(this[a+1]<<16|this[a+2]<<8|this[a+3])},"readUInt32BE");H.prototype.readIntLE=s(function(a,i,r){a=a|0,i=i|0,r||oi(a,i,this.length);for(var t=this[a],o=1,n=0;++n<i&&(o*=256);)t+=this[a+n]*o;return o*=128,t>=o&&(t-=Math.pow(2,8*i)),t},"readIntLE");H.prototype.readIntBE=s(function(a,i,r){a=a|0,i=i|0,r||oi(a,i,this.length);for(var t=i,o=1,n=this[a+--t];t>0&&(o*=256);)n+=this[a+--t]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*i)),n},"readIntBE");H.prototype.readInt8=s(function(a,i){return i||oi(a,1,this.length),this[a]&128?(255-this[a]+1)*-1:this[a]},"readInt8");H.prototype.readInt16LE=s(function(a,i){i||oi(a,2,this.length);var r=this[a]|this[a+1]<<8;return r&32768?r|4294901760:r},"rea\
dInt16LE");H.prototype.readInt16BE=s(function(a,i){i||oi(a,2,this.length);var r=this[a+1]|this[a]<<8;return r&32768?r|4294901760:r},"readInt16BE");H.prototype.readInt32LE=s(function(a,i){return i||oi(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},"readInt32LE");H.prototype.readInt32BE=s(function(a,i){return i||oi(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},"readInt32BE");H.prototype.readFloatLE=s(function(a,i){return i||oi(a,4,this.length),fh(this,a,!0,23,4)},"readFloatLE");H.prototype.readFloatBE=s(function(a,i){return i||oi(a,4,this.length),fh(this,a,!1,23,4)},"readFloatBE");H.prototype.readDoubleLE=s(function(a,i){return i||oi(a,8,this.length),fh(this,a,!0,52,8)},"readDoubleLE");H.prototype.readDoubleBE=s(function(a,i){return i||oi(a,8,this.length),fh(this,a,!1,52,8)},"readDoubleBE");s(qi,"checkInt");H.prototype.writeUIntLE=s(function(a,i,r,t){if(a=+a,i=i|0,r=r|0,!t){var o=Math.pow(2,8*r)-1;qi(this,a,i,r,o,0)}var n=1,d=0;for(this[i]=a&255;++d<
r&&(n*=256);)this[i+d]=a/n&255;return i+r},"writeUIntLE");H.prototype.writeUIntBE=s(function(a,i,r,t){if(a=+a,i=i|0,r=r|0,!t){var o=Math.pow(2,8*r)-1;qi(this,a,i,r,o,0)}var n=r-1,d=1;for(this[i+n]=a&255;--n>=0&&(d*=256);)this[i+n]=a/d&255;return i+r},"writeUIntBE");H.prototype.writeUInt8=s(function(a,i,r){return a=+a,i=i|0,r||qi(this,a,i,1,255,0),H.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[i]=a&255,i+1},"writeUInt8");s(hh,"objectWriteUInt16");H.prototype.writeUInt16LE=s(function(a,i,r){return a=+a,i=i|0,r||qi(this,a,i,2,65535,0),H.TYPED_ARRAY_SUPPORT?(this[i]=a&255,this[i+1]=a>>>8):hh(this,a,i,!0),i+2},"writeUInt16LE");H.prototype.writeUInt16BE=s(function(a,i,r){return a=+a,i=i|0,r||qi(this,a,i,2,65535,0),H.TYPED_ARRAY_SUPPORT?(this[i]=a>>>8,this[i+1]=a&255):hh(this,a,i,!1),i+2},"writeUInt16BE");s(mh,"objectWriteUInt32");H.prototype.writeUInt32LE=s(function(a,i,r){return a=+a,i=i|0,r||qi(this,a,i,4,4294967295,0),H.TYPED_ARRAY_SUPPORT?(this[i+3]=a>>>24,this[i+2]=a>>>16,this[i+1]=a>>>8,
this[i]=a&255):mh(this,a,i,!0),i+4},"writeUInt32LE");H.prototype.writeUInt32BE=s(function(a,i,r){return a=+a,i=i|0,r||qi(this,a,i,4,4294967295,0),H.TYPED_ARRAY_SUPPORT?(this[i]=a>>>24,this[i+1]=a>>>16,this[i+2]=a>>>8,this[i+3]=a&255):mh(this,a,i,!1),i+4},"writeUInt32BE");H.prototype.writeIntLE=s(function(a,i,r,t){if(a=+a,i=i|0,!t){var o=Math.pow(2,8*r-1);qi(this,a,i,r,o-1,-o)}var n=0,d=1,l=0;for(this[i]=a&255;++n<r&&(d*=256);)a<0&&l===0&&this[i+n-1]!==0&&(l=1),this[i+n]=(a/d>>0)-l&255;return i+r},"writeIntLE");H.prototype.writeIntBE=s(function(a,i,r,t){if(a=+a,i=i|0,!t){var o=Math.pow(2,8*r-1);qi(this,a,i,r,o-1,-o)}var n=r-1,d=1,l=0;for(this[i+n]=a&255;--n>=0&&(d*=256);)a<0&&l===0&&this[i+n+1]!==0&&(l=1),this[i+n]=(a/d>>0)-l&255;return i+r},"writeIntBE");H.prototype.writeInt8=s(function(a,i,r){return a=+a,i=i|0,r||qi(this,a,i,1,127,-128),H.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),a<0&&(a=255+a+1),this[i]=a&255,i+1},"writeInt8");H.prototype.writeInt16LE=s(function(a,i,r){return a=+a,i=i|0,
r||qi(this,a,i,2,32767,-32768),H.TYPED_ARRAY_SUPPORT?(this[i]=a&255,this[i+1]=a>>>8):hh(this,a,i,!0),i+2},"writeInt16LE");H.prototype.writeInt16BE=s(function(a,i,r){return a=+a,i=i|0,r||qi(this,a,i,2,32767,-32768),H.TYPED_ARRAY_SUPPORT?(this[i]=a>>>8,this[i+1]=a&255):hh(this,a,i,!1),i+2},"writeInt16BE");H.prototype.writeInt32LE=s(function(a,i,r){return a=+a,i=i|0,r||qi(this,a,i,4,2147483647,-2147483648),H.TYPED_ARRAY_SUPPORT?(this[i]=a&255,this[i+1]=a>>>8,this[i+2]=a>>>16,this[i+3]=a>>>24):mh(this,a,i,!0),i+4},"writeInt32LE");H.prototype.writeInt32BE=s(function(a,i,r){return a=+a,i=i|0,r||qi(this,a,i,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),H.TYPED_ARRAY_SUPPORT?(this[i]=a>>>24,this[i+1]=a>>>16,this[i+2]=a>>>8,this[i+3]=a&255):mh(this,a,i,!1),i+4},"writeInt32BE");s(Z7,"checkIEEE754");s(Q7,"writeFloat");H.prototype.writeFloatLE=s(function(a,i,r){return Q7(this,a,i,!0,r)},"writeFloatLE");H.prototype.writeFloatBE=s(function(a,i,r){return Q7(this,a,i,!1,r)},"writeFloatBE");s(eT,"w\
riteDouble");H.prototype.writeDoubleLE=s(function(a,i,r){return eT(this,a,i,!0,r)},"writeDoubleLE");H.prototype.writeDoubleBE=s(function(a,i,r){return eT(this,a,i,!1,r)},"writeDoubleBE");H.prototype.copy=s(function(a,i,r,t){if(r||(r=0),!t&&t!==0&&(t=this.length),i>=a.length&&(i=a.length),i||(i=0),t>0&&t<r&&(t=r),t===r||a.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),a.length-i<t-r&&(t=a.length-i+r);var o=t-r,n;if(this===a&&r<i&&i<t)for(n=o-1;n>=0;--n)a[n+i]=this[n+r];else if(o<1e3||!H.TYPED_ARRAY_SUPPORT)for(n=0;n<o;++n)a[n+i]=this[n+r];else Uint8Array.prototype.set.call(a,this.subarray(r,r+o),i);return o},"copy");H.prototype.fill=s(function(a,i,r,t){if(typeof a=="string"){if(typeof i=="string"?(t=i,i=0,r=this.length):typeof r=="string"&&(t=r,r=this.length),a.length===1){var o=a.charCodeAt(
0);o<256&&(a=o)}if(t!==void 0&&typeof t!="string")throw new TypeError("encoding must be a string");if(typeof t=="string"&&!H.isEncoding(t))throw new TypeError("Unknown encoding: "+t)}else typeof a=="number"&&(a=a&255);if(i<0||this.length<i||this.length<r)throw new RangeError("Out of range index");if(r<=i)return this;i=i>>>0,r=r===void 0?this.length:r>>>0,a||(a=0);var n;if(typeof a=="number")for(n=i;n<r;++n)this[n]=a;else{var d=Kr(a)?a:ph(new H(a,t).toString()),l=d.length;for(n=0;n<r-i;++n)this[n+i]=d[n%l]}return this},"fill");Mq=/[^+\/0-9A-Za-z-_]/g;s(Aq,"base64clean");s(Iq,"stringtrim");s(Pq,"toHex");s(ph,"utf8ToBytes");s(Lq,"asciiToBytes");s(Oq,"utf16leToBytes");s(aT,"base64ToBytes");s(uh,"blitBuffer");s(Nq,"isnan");s(Fq,"isBuffer");s(iT,"isFastBuffer");s(jq,"isSlowBuffer")});function lo(){}function Ke(){Ke.init.call(this)}function rT(e){return e._maxListeners===void 0?Ke.defaultMaxListeners:e._maxListeners}function Gq(e,a,i){if(a)e.call(i);else for(var r=e.length,t=Tl(e,r),o=0;o<r;++o)t[o].call(i)}function Bq(e,a,i,r){if(a)e.call(i,r);else for(var t=e.length,o=Tl(e,t),n=0;n<t;++n)o[n].call(i,r)}function Hq(e,a,i,r,t){if(a)e.call(i,r,t);else for(var o=e.length,n=Tl(e,o),d=0;d<o;++d)n[d].call(i,r,t)}function Uq(e,a,i,r,t,o){if(a)e.call(i,r,t,o);else for(var n=e.length,d=Tl(e,n),l=0;l<n;++l)d[l].call(i,r,t,o)}function Wq(e,a,i,r){if(a)e.apply(i,r);else for(var t=e.length,o=Tl(e,t),n=0;n<t;++n)o[n].apply(i,r)}function tT(e,a,i,r){var t,o,n;if(typeof i!="function")throw new TypeError('"listener" argument must be a function');if(o=e._events,o?(o.newListener&&(e.emit("newListener",a,i.listener?i.listener:i),o=e._events),n=o[a]):(o=e._events=new lo,e._eventsCount=0),!n)n=o[a]=i,++e._eventsCount;else if(typeof n=="function"?n=o[a]=r?[i,n]:[n,i]:r?n.unshift(i):n.push(
i),!n.warned&&(t=rT(e),t&&t>0&&n.length>t)){n.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+n.length+" "+a+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=a,d.count=n.length,Vq(d)}return e}function Vq(e){typeof console.warn=="function"?console.warn(e):console.log(e)}function oT(e,a,i){var r=!1;function t(){e.removeListener(a,t),r||(r=!0,i.apply(e,arguments))}return s(t,"g"),t.listener=i,t}function sT(e){var a=this._events;if(a){var i=a[e];if(typeof i=="function")return 1;if(i)return i.length}return 0}function qq(e,a){for(var i=a,r=i+1,t=e.length;r<t;i+=1,r+=1)e[i]=e[r];e.pop()}function Tl(e,a){for(var i=new Array(a);a--;)i[a]=e[a];return i}function zq(e){for(var a=new Array(e.length),i=0;i<a.length;++i)a[i]=e[i].listener||e[i];return a}var j_,hr,wt=_(()=>{"use strict";p();s(lo,"EventHandlers");lo.prototype=Object.create(null);s(Ke,"EventEmitter");hr=Ke;Ke.EventEmitter=Ke;Ke.usingDomains=
!1;Ke.prototype.domain=void 0;Ke.prototype._events=void 0;Ke.prototype._maxListeners=void 0;Ke.defaultMaxListeners=10;Ke.init=function(){this.domain=null,Ke.usingDomains&&j_.active&&!(this instanceof j_.Domain)&&(this.domain=j_.active),(!this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=new lo,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ke.prototype.setMaxListeners=s(function(a){if(typeof a!="number"||a<0||isNaN(a))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=a,this},"setMaxListeners");s(rT,"$getMaxListeners");Ke.prototype.getMaxListeners=s(function(){return rT(this)},"getMaxListeners");s(Gq,"emitNone");s(Bq,"emitOne");s(Hq,"emitTwo");s(Uq,"emitThree");s(Wq,"emitMany");Ke.prototype.emit=s(function(a){var i,r,t,o,n,d,l,c=!1,f=a==="error";if(d=this._events,d)f=f&&d.error==null;else if(!f)return!1;if(l=this.domain,f){if(i=arguments[1],l)i||(i=new Error('Uncaught, unspecified "error" event')),
i.domainEmitter=this,i.domain=l,i.domainThrown=!1,l.emit("error",i);else{if(i instanceof Error)throw i;var h=new Error('Uncaught, unspecified "error" event. ('+i+")");throw h.context=i,h}return!1}if(r=d[a],!r)return!1;var m=typeof r=="function";switch(t=arguments.length,t){case 1:Gq(r,m,this);break;case 2:Bq(r,m,this,arguments[1]);break;case 3:Hq(r,m,this,arguments[1],arguments[2]);break;case 4:Uq(r,m,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(t-1),n=1;n<t;n++)o[n-1]=arguments[n];Wq(r,m,this,o)}return c&&l.exit(),!0},"emit");s(tT,"_addListener");s(Vq,"emitWarning");Ke.prototype.addListener=s(function(a,i){return tT(this,a,i,!1)},"addListener");Ke.prototype.on=Ke.prototype.addListener;Ke.prototype.prependListener=s(function(a,i){return tT(this,a,i,!0)},"prependListener");s(oT,"_onceWrap");Ke.prototype.once=s(function(a,i){if(typeof i!="function")throw new TypeError('"listener" argument must be a function');return this.on(a,oT(this,a,i)),this},"once");Ke.prototype.
prependOnceListener=s(function(a,i){if(typeof i!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(a,oT(this,a,i)),this},"prependOnceListener");Ke.prototype.removeListener=s(function(a,i){var r,t,o,n,d;if(typeof i!="function")throw new TypeError('"listener" argument must be a function');if(t=this._events,!t)return this;if(r=t[a],!r)return this;if(r===i||r.listener&&r.listener===i)--this._eventsCount===0?this._events=new lo:(delete t[a],t.removeListener&&this.emit("removeListener",a,r.listener||i));else if(typeof r!="function"){for(o=-1,n=r.length;n-- >0;)if(r[n]===i||r[n].listener&&r[n].listener===i){d=r[n].listener,o=n;break}if(o<0)return this;if(r.length===1){if(r[0]=void 0,--this._eventsCount===0)return this._events=new lo,this;delete t[a]}else qq(r,o);t.removeListener&&this.emit("removeListener",a,d||i)}return this},"removeListener");Ke.prototype.off=function(e,a){return this.removeListener(e,a)};Ke.prototype.removeAllListeners=s(function(a){
var i,r;if(r=this._events,!r)return this;if(!r.removeListener)return arguments.length===0?(this._events=new lo,this._eventsCount=0):r[a]&&(--this._eventsCount===0?this._events=new lo:delete r[a]),this;if(arguments.length===0){for(var t=Object.keys(r),o=0,n;o<t.length;++o)n=t[o],n!=="removeListener"&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new lo,this._eventsCount=0,this}if(i=r[a],typeof i=="function")this.removeListener(a,i);else if(i)do this.removeListener(a,i[i.length-1]);while(i[0]);return this},"removeAllListeners");Ke.prototype.listeners=s(function(a){var i,r,t=this._events;return t?(i=t[a],i?typeof i=="function"?r=[i.listener||i]:r=zq(i):r=[]):r=[],r},"listeners");Ke.listenerCount=function(e,a){return typeof e.listenerCount=="function"?e.listenerCount(a):sT.call(e,a)};Ke.prototype.listenerCount=sT;s(sT,"listenerCount");Ke.prototype.eventNames=s(function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},"eventNames");s(
qq,"spliceOne");s(Tl,"arrayClone");s(zq,"unwrapListeners")});var dT=be((Y2e,nT)=>{p();var Sn=1e3,Tn=Sn*60,En=Tn*60,bs=En*24,Xq=bs*7,Kq=bs*365.25;nT.exports=function(e,a){a=a||{};var i=typeof e;if(i==="string"&&e.length>0)return Yq(e);if(i==="number"&&isFinite(e))return a.long?Jq(e):$q(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Yq(e){if(e=String(e),!(e.length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var i=parseFloat(a[1]),r=(a[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return i*Kq;case"weeks":case"week":case"w":return i*Xq;case"days":case"day":case"d":return i*bs;case"hours":case"hour":case"hrs":case"hr":case"h":return i*En;case"minutes":case"minute":case"mins":case"min":case"m":return i*Tn;case"seconds":case"second":case"secs":case"sec":case"s":return i*Sn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:
return}}}}s(Yq,"parse");function $q(e){var a=Math.abs(e);return a>=bs?Math.round(e/bs)+"d":a>=En?Math.round(e/En)+"h":a>=Tn?Math.round(e/Tn)+"m":a>=Sn?Math.round(e/Sn)+"s":e+"ms"}s($q,"fmtShort");function Jq(e){var a=Math.abs(e);return a>=bs?_h(e,a,bs,"day"):a>=En?_h(e,a,En,"hour"):a>=Tn?_h(e,a,Tn,"minute"):a>=Sn?_h(e,a,Sn,"second"):e+" ms"}s(Jq,"fmtLong");function _h(e,a,i,r){var t=a>=i*1.5;return Math.round(e/i)+" "+r+(t?"s":"")}s(_h,"plural")});var cT=be((Z2e,lT)=>{p();function Zq(e){i.debug=i,i.default=i,i.coerce=l,i.disable=o,i.enable=t,i.enabled=n,i.humanize=dT(),i.destroy=c,Object.keys(e).forEach(f=>{i[f]=e[f]}),i.names=[],i.skips=[],i.formatters={};function a(f){let h=0;for(let m=0;m<f.length;m++)h=(h<<5)-h+f.charCodeAt(m),h|=0;return i.colors[Math.abs(h)%i.colors.length]}s(a,"selectColor"),i.selectColor=a;function i(f){let h,m=null,u,g;function x(...y){if(!x.enabled)return;let E=x,C=Number(new Date),k=C-(h||C);E.diff=k,E.prev=h,E.curr=C,h=C,y[0]=i.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let T=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(U,F)=>{if(U==="%%")return"%";T++;let V=i.formatters[F];if(typeof V=="function"){let Y=y[T];U=V.call(E,Y),y.splice(T,1),T--}return U}),i.formatArgs.call(E,y),(E.log||i.log).apply(E,y)}return s(x,"debug"),x.namespace=f,x.useColors=i.useColors(),x.color=i.selectColor(f),x.extend=r,x.destroy=i.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:s(()=>m!==null?m:(u!==
i.namespaces&&(u=i.namespaces,g=i.enabled(f)),g),"get"),set:s(y=>{m=y},"set")}),typeof i.init=="function"&&i.init(x),x}s(i,"createDebug");function r(f,h){let m=i(this.namespace+(typeof h>"u"?":":h)+f);return m.log=this.log,m}s(r,"extend");function t(f){i.save(f),i.namespaces=f,i.names=[],i.skips=[];let h,m=(typeof f=="string"?f:"").split(/[\s,]+/),u=m.length;for(h=0;h<u;h++)m[h]&&(f=m[h].replace(/\*/g,".*?"),f[0]==="-"?i.skips.push(new RegExp("^"+f.slice(1)+"$")):i.names.push(new RegExp("^"+f+"$")))}s(t,"enable");function o(){let f=[...i.names.map(d),...i.skips.map(d).map(h=>"-"+h)].join(",");return i.enable(""),f}s(o,"disable");function n(f){if(f[f.length-1]==="*")return!0;let h,m;for(h=0,m=i.skips.length;h<m;h++)if(i.skips[h].test(f))return!1;for(h=0,m=i.names.length;h<m;h++)if(i.names[h].test(f))return!0;return!1}s(n,"enabled");function d(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}s(d,"toNamespace");function l(f){return f instanceof Error?f.stack||
f.message:f}s(l,"coerce");function c(){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(c,"destroy"),i.enable(i.load()),i}s(Zq,"setup");lT.exports=Zq});var pT=be((rr,gh)=>{p();rr.formatArgs=ez;rr.save=az;rr.load=iz;rr.useColors=Qq;rr.storage=rz();rr.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`."))}})();rr.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 Qq(){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(Qq,"useColors");function ez(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+gh.exports.humanize(this.diff),!this.useColors)return;let a="color: "+this.color;e.splice(
1,0,a,"color: inherit");let i=0,r=0;e[0].replace(/%[a-zA-Z%]/g,t=>{t!=="%%"&&(i++,t==="%c"&&(r=i))}),e.splice(r,0,a)}s(ez,"formatArgs");rr.log=console.debug||console.log||(()=>{});function az(e){try{e?rr.storage.setItem("debug",e):rr.storage.removeItem("debug")}catch{}}s(az,"save");function iz(){let e;try{e=rr.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}s(iz,"load");function rz(){try{return localStorage}catch{}}s(rz,"localstorage");gh.exports=cT()(rr);var{formatters:tz}=gh.exports;tz.j=function(e){try{return JSON.stringify(e)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}});function bh(e){if(!e)throw new Error("name must be non-empty")}function oz(e,a){for(var i=0,r=e.length,t;i<r;)t=i+r>>>1,e[t].startTime<a.startTime?i=t+1:r=t;e.splice(i,0,a)}var Li,fT,wh,vh,El,Sh,xh,yh,hT=_(()=>{p();Li=typeof performance<"u"&&performance,fT=Li&&Li.now?function(){return Li.now()}:function(){return Date.now()};s(bh,"throwIfEmpty");s(oz,"insertSorted");Li&&Li.mark&&Li.getEntriesByName&&Li.getEntriesByType&&Li.clearMeasures?(wh=s(function(e){bh(e),Li.mark("start "+e)},"mark"),vh=s(function(e){bh(e),Li.mark("end "+e),Li.measure(e,"start "+e,"end "+e);var a=Li.getEntriesByName(e);return a[a.length-1]},"stop"),El=s(function(){return Li.getEntriesByType("measure")},"getEntries"),Sh=s(function(){Li.clearMarks(),Li.clearMeasures()},"clear")):(xh={},yh=[],wh=s(function(e){bh(e);var a=fT();xh["$"+e]=a},"mark"),vh=s(function(e){bh(e);var a=fT(),i=xh["$"+e];if(!i)throw new Error("no known mark: "+e);var r={startTime:i,name:e,duration:a-i,entryType:"measure"};return oz(yh,r),r},"stop"),
El=s(function(){return yh},"getEntries"),Sh=s(function(){xh={},yh=[]},"clear"))});var po,co,Cn,kn,G_,mT,nz,uT,Rn,P,ze=_(()=>{"use strict";p();no();wt();po=yi(pT(),1);hT();co=vi.platform==="win32",Cn=vi.browser,kn={red:Cn?"crimson":1,yellow:Cn?"gold":3,cyan:Cn?"darkturquoise":6,green:Cn?"forestgreen":2,blue:Cn?"steelblue":4,magenta:Cn?"palevioletred":5};po.default.colors=[kn.cyan,kn.green,kn.blue,kn.magenta];G_=class extends Ke{static{s(this,"Emitter")}constructor(a){super(a)}issueStatus(a,i){(a==="status"||a==="statusEnd")&&this.emit(a,[a,...i])}issueWarning(a,i){this.emit("warning",[a,...i])}},mT={},nz=25,Rn=class e{static{s(this,"Log")}static _logToStdErr(a,i){e.loggerfn(a)(...i)}static loggerfn(a){a=`LH:${a}`;let i=mT[a];return i||(i=(0,po.default)(a),mT[a]=i,a.endsWith("error")?i.color=kn.red:a.endsWith("warn")&&(i.color=kn.yellow)),i}static setLevel(a){switch(uT=a,a){case"silent":po.default.enable("-LH:*");break;case"verbose":po.default.enable("LH:*");break;case"warn":po.default.enable("-LH:*, LH:*:warn, LH:*:error");break;case"error":po.default.enable("-LH:*, \
LH:*:error");break;default:po.default.enable("LH:*, -LH:*:verbose")}}static formatProtocol(a,i,r){let t=!vi||vi.browser?1/0:vi.stdout.columns,o=i.method||"?????",n=t-o.length-a.length-nz,d=i.params&&o!=="IO.read"?JSON.stringify(i.params).substr(0,n):"";e._logToStdErr(`${a}:${r||""}`,[o,d])}static isVerbose(){return uT==="verbose"}static time({msg:a,id:i,args:r=[]},t="log"){wh(i),e[t]("status",a,...r)}static timeEnd({msg:a,id:i,args:r=[]},t="verbose"){e[t]("statusEnd",a,...r),vh(i)}static log(a,...i){return e.events.issueStatus(a,i),e._logToStdErr(a,i)}static warn(a,...i){return e.events.issueWarning(a,i),e._logToStdErr(`${a}:warn`,i)}static error(a,...i){return e._logToStdErr(`${a}:error`,i)}static verbose(a,...i){return e.events.issueStatus(a,i),e._logToStdErr(`${a}:verbose`,i)}static greenify(a){return`${e.green}${a}${e.reset}`}static redify(a){return`${e.red}${a}${e.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 co?"√":"✓"}static get cross(){return co?"×":"✘"}static get whiteSmallSquare(){return co?"·":"▫"}static get heavyHorizontal(){return co?"─":"━"}static get heavyVertical(){return co?"│ ":"┃ "}static get heavyUpAndRight(){return co?"└":"┗"}static get heavyVerticalAndRight(){return co?"├":"┣"}static get heavyDownAndHorizontal(){return co?"┬":"┳"}static get doubleLightHorizontal(){return"──"}};Rn.events=new G_;Rn.takeTimeEntries=()=>{let e=El();return Sh(),e};Rn.getTimeEntries=()=>El();P=Rn});var Si=_(()=>{"use strict";p();});var B_,me,xa=_(()=>{"use strict";p();Si();B_=class{static{s(this,"BaseGatherer")}meta={supportedModes:[]};startInstrumentation(a){}startSensitiveInstrumentation(a){}stopSensitiveInstrumentation(a){}stopInstrumentation(a){}getArtifact(a){}},me=B_});var dz,lz,cz,pz,fz,hz,Oi,fo=_(()=>{"use strict";p();ze();dz=/^(chrome|https?):/,lz=16,cz="RunTask",pz="ThreadControllerImpl::RunTask",fz="ThreadControllerImpl::DoWork",hz="TaskQueueManager::ProcessTaskFromWorkQueue",Oi=class e{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(a){return a.name!=="navigationStart"?!1:a.args.data?.documentLoaderURL===void 0?!0:a.args.data?.documentLoaderURL?dz.test(a.args.data.documentLoaderURL):!1}static _sortTimestampEventGroup(a,i,r,t){
let o=s(h=>i[h],"lookupArrayIndexByTsIndex"),n=s(h=>t[o(h)],"lookupEventByTsIndex"),d=[],l=[],c=[];for(let h of a){let m=o(h),u=n(h);u.ph==="E"?d.push(m):u.ph==="X"||u.ph==="B"?l.push(m):c.push(m)}let f=new Map;for(let h of l){let m=t[h];if(m.ph==="X")f.set(h,m.dur);else{let u=Number.MAX_SAFE_INTEGER,g=0,x=r+a.length;for(let y=x;y<i.length;y++){let E=n(y);if(E.name===m.name&&E.pid===m.pid&&E.tid===m.tid)if(E.ph==="E"&&g===0){u=E.ts-m.ts;break}else E.ph==="E"?g--:E.ph==="B"&&g++}f.set(h,u)}}return l.sort((h,m)=>(f.get(m)||0)-(f.get(h)||0)||h-m),c.sort((h,m)=>h-m),[...d,...l,...c]}static filteredTraceSort(a,i){let r=[];for(let o=0;o<a.length;o++)i(a[o])&&r.push(o);r.sort((o,n)=>a[o].ts-a[n].ts);for(let o=0;o<r.length-1;o++){let n=a[r[o]].ts,d=[o];for(let c=o+1;c<r.length&&a[r[c]].ts===n;c++)d.push(c);if(d.length===1)continue;let l=e._sortTimestampEventGroup(d,r,o,a);r.splice(o,l.length,...l),o+=d.length-1}let t=[];for(let o=0;o<r.length;o++)t.push(a[r[o]]);return t}static assertHasToplevelEvents(a){
if(!a.some(this.isScheduleableTask))throw new Error("Could not find any top level events")}static _riskPercentiles(a,i,r,t=0){let o=0;for(let m=0;m<a.length;m++)o+=a[m];o-=t;let n=i-o,d=0,l=n,c=[],f=-1,h=a.length+1;t>0&&h--;for(let m of r){let u=m*i;for(;l<u&&f<a.length-1;)n+=d,h-=d<0?-1:1,t>0&&t<a[f+1]?(d=-t,t=0):(f++,d=a[f]),l=n+Math.abs(d)*h;c.push({percentile:m,time:Math.max(0,(u-n)/h)+lz})}return c}static getRiskToResponsiveness(a,i,r,t=[.5,.75,.9,.99,1]){let o=r-i;t.sort((d,l)=>d-l);let n=this.getMainThreadTopLevelEventDurations(a,i,r);return this._riskPercentiles(n.durations,o,t,n.clippedLength)}static getMainThreadTopLevelEventDurations(a,i=0,r=1/0){let t=[],o=0;for(let n of a){if(n.end<i||n.start>r)continue;let d=n.duration,l=n.start;l<i&&(l=i,d=n.end-i),n.end>r&&(o=d-(r-l)),t.push(d)}return t.sort((n,d)=>n-d),{durations:t,clippedLength:o}}static getMainThreadTopLevelEvents(a,i=0,r=1/0){let t=[],o;for(let n of a.mainThreadEvents){if(!this.isScheduleableTask(n)||!n.dur)continue;
let d=(n.ts-a.timeOriginEvt.ts)/1e3,l=(n.ts+n.dur-a.timeOriginEvt.ts)/1e3;d>r||l<i||(o&&d<o.end&&(o.end=d-.001),o={start:d,end:l,duration:n.dur/1e3},t.push(o))}return t}static findMainFrameIds(a){let i=a.find(n=>n.name==="TracingStartedInBrowser");if(i?.args.data?.frames){let n=i.args.data.frames.find(c=>!c.parent),d=n?.frame,l=n?.processId;if(l&&d)return{startingPid:l,frameId:d}}let r=a.find(n=>n.name==="TracingStartedInPage");if(r?.args?.data){let n=r.args.data.page;if(n)return{startingPid:r.pid,frameId:n}}let t=a.find(n=>this._isNavigationStartOfInterest(n)&&n.args.data?.isLoadingMainFrame),o=a.find(n=>n.name==="ResourceSendRequest");if(t?.args?.data&&o&&o.pid===t.pid&&o.tid===t.tid){let n=t.args.frame;if(n)return{startingPid:t.pid,frameId:n}}throw this.createNoTracingStartedError()}static findMainFramePidTids(a,i){let r=i.filter(n=>(n.name==="FrameCommittedInBrowser"||n.name==="ProcessReadyInBrowser")&&n.args?.data?.frame===a.frameId&&n?.args?.data?.processId),t=r.length?r.map(n=>n?.
args?.data?.processId):[a.startingPid],o=new Map;for(let n of new Set(t)){let d=i.filter(f=>f.cat==="__metadata"&&f.pid===n&&f.ph==="M"&&f.name==="thread_name"),l=d.find(f=>f.args.name==="CrRendererMain");l||(l=d.find(f=>f.args.name==="CrBrowserMain"));let c=l?.tid;if(!c)throw new Error("Unable to determine tid for renderer process");o.set(n,c)}return o}static isScheduleableTask(a){return a.name===cz||a.name===pz||a.name===fz||a.name===hz}static isLCPEvent(a){return a.name!=="largestContentfulPaint::Invalidate"&&a.name!=="largestContentfulPaint::Candidate"?!1:!!a.args?.frame}static isLCPCandidateEvent(a){return!!(a.name==="largestContentfulPaint::Candidate"&&a.args?.frame&&a.args.data&&a.args.data.size!==void 0)}static getFrameId(a){return a.args?.data?.frame||a.args.data?.frameID||a.args.frame}static computeValidLCPAllFrames(a,i){let r=a.filter(this.isLCPEvent).reverse(),t=new Map;for(let n of r){if(n.ts<=i.ts)break;let d=n.args.frame;t.has(d)||t.set(d,n)}let o;for(let n of t.values())
this.isLCPCandidateEvent(n)&&(!o||n.args.data.size>o.args.data.size)&&(o=n);return{lcp:o,invalidated:!!(!o&&t.size)}}static resolveRootFrames(a){let i=new Map;for(let t of a)t.parent&&i.set(t.id,t.parent);let r=new Map;for(let t of a){let o=t.id;for(;i.has(o);)o=i.get(o);if(o===void 0)throw new Error("Unexpected undefined frameId");r.set(t.id,o)}return r}static processTrace(a,i){let{timeOriginDeterminationMethod:r="auto"}=i||{},t=this.filteredTraceSort(a.traceEvents,T=>T.cat.includes("blink.user_timing")||T.cat.includes("loading")||T.cat.inc