lighthouse 11.7.0-dev.20240326 → 11.7.0-dev.20240328

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/core/audits/work-during-interaction.d.ts +2 -2
  2. package/core/audits/work-during-interaction.js +2 -2
  3. package/core/computed/metrics/lantern-first-contentful-paint.d.ts +13 -82
  4. package/core/computed/metrics/lantern-first-contentful-paint.js +15 -178
  5. package/core/computed/metrics/lantern-first-meaningful-paint.d.ts +13 -12
  6. package/core/computed/metrics/lantern-first-meaningful-paint.js +10 -49
  7. package/core/computed/metrics/lantern-interactive.d.ts +13 -21
  8. package/core/computed/metrics/lantern-interactive.js +11 -84
  9. package/core/computed/metrics/lantern-largest-contentful-paint.d.ts +13 -25
  10. package/core/computed/metrics/lantern-largest-contentful-paint.js +12 -80
  11. package/core/computed/metrics/lantern-max-potential-fid.d.ts +13 -24
  12. package/core/computed/metrics/lantern-max-potential-fid.js +11 -64
  13. package/core/computed/metrics/lantern-metric.d.ts +9 -18
  14. package/core/computed/metrics/lantern-metric.js +13 -31
  15. package/core/computed/metrics/lantern-speed-index.d.ts +13 -32
  16. package/core/computed/metrics/lantern-speed-index.js +12 -116
  17. package/core/computed/metrics/lantern-total-blocking-time.d.ts +13 -25
  18. package/core/computed/metrics/lantern-total-blocking-time.js +10 -94
  19. package/core/computed/metrics/metric.js +1 -3
  20. package/core/config/default-config.js +45 -58
  21. package/core/config/experimental-config.js +1 -1
  22. package/core/lib/lantern/metrics/first-contentful-paint.d.ts +79 -0
  23. package/core/lib/lantern/metrics/first-contentful-paint.js +200 -0
  24. package/core/lib/lantern/metrics/first-meaningful-paint.d.ts +6 -0
  25. package/core/lib/lantern/metrics/first-meaningful-paint.js +66 -0
  26. package/core/lib/lantern/metrics/interactive.d.ts +26 -0
  27. package/core/lib/lantern/metrics/interactive.js +112 -0
  28. package/core/lib/lantern/metrics/largest-contentful-paint.d.ts +19 -0
  29. package/core/lib/lantern/metrics/largest-contentful-paint.js +108 -0
  30. package/core/lib/lantern/metrics/max-potential-fid.d.ts +30 -0
  31. package/core/lib/lantern/metrics/max-potential-fid.js +92 -0
  32. package/core/lib/lantern/metrics/speed-index.d.ts +38 -0
  33. package/core/lib/lantern/metrics/speed-index.js +145 -0
  34. package/core/lib/lantern/metrics/total-blocking-time.d.ts +31 -0
  35. package/core/lib/lantern/metrics/total-blocking-time.js +128 -0
  36. package/core/lib/lighthouse-compatibility.js +53 -10
  37. package/dist/report/bundle.esm.js +1 -1
  38. package/dist/report/flow.js +2 -2
  39. package/dist/report/standalone.js +1 -1
  40. package/package.json +1 -1
  41. package/report/renderer/performance-category-renderer.d.ts +0 -7
  42. package/report/renderer/performance-category-renderer.js +1 -11
  43. package/report/renderer/report-utils.js +13 -10
  44. package/shared/localization/locales/ar-XB.json +1 -16
  45. package/shared/localization/locales/ar.json +1 -16
  46. package/shared/localization/locales/bg.json +1 -16
  47. package/shared/localization/locales/ca.json +1 -16
  48. package/shared/localization/locales/cs.json +1 -16
  49. package/shared/localization/locales/da.json +1 -16
  50. package/shared/localization/locales/de.json +1 -16
  51. package/shared/localization/locales/el.json +1 -16
  52. package/shared/localization/locales/en-GB.json +1 -16
  53. package/shared/localization/locales/en-US.json +2 -17
  54. package/shared/localization/locales/en-XA.json +1 -16
  55. package/shared/localization/locales/en-XL.json +2 -17
  56. package/shared/localization/locales/es-419.json +1 -16
  57. package/shared/localization/locales/es.json +1 -16
  58. package/shared/localization/locales/fi.json +1 -16
  59. package/shared/localization/locales/fil.json +1 -16
  60. package/shared/localization/locales/fr.json +1 -16
  61. package/shared/localization/locales/he.json +1 -16
  62. package/shared/localization/locales/hi.json +1 -16
  63. package/shared/localization/locales/hr.json +1 -16
  64. package/shared/localization/locales/hu.json +1 -16
  65. package/shared/localization/locales/id.json +1 -16
  66. package/shared/localization/locales/it.json +1 -16
  67. package/shared/localization/locales/ja.json +1 -16
  68. package/shared/localization/locales/ko.json +1 -16
  69. package/shared/localization/locales/lt.json +1 -16
  70. package/shared/localization/locales/lv.json +1 -16
  71. package/shared/localization/locales/nl.json +1 -16
  72. package/shared/localization/locales/no.json +1 -16
  73. package/shared/localization/locales/pl.json +1 -16
  74. package/shared/localization/locales/pt-PT.json +1 -16
  75. package/shared/localization/locales/pt.json +1 -16
  76. package/shared/localization/locales/ro.json +1 -16
  77. package/shared/localization/locales/ru.json +1 -16
  78. package/shared/localization/locales/sk.json +1 -16
  79. package/shared/localization/locales/sl.json +1 -16
  80. package/shared/localization/locales/sr-Latn.json +1 -16
  81. package/shared/localization/locales/sr.json +1 -16
  82. package/shared/localization/locales/sv.json +1 -16
  83. package/shared/localization/locales/ta.json +1 -16
  84. package/shared/localization/locales/te.json +1 -16
  85. package/shared/localization/locales/th.json +1 -16
  86. package/shared/localization/locales/tr.json +1 -16
  87. package/shared/localization/locales/uk.json +1 -16
  88. package/shared/localization/locales/vi.json +1 -16
  89. package/shared/localization/locales/zh-HK.json +1 -16
  90. package/shared/localization/locales/zh-TW.json +1 -16
  91. package/shared/localization/locales/zh.json +1 -16
  92. package/tsconfig.json +1 -0
  93. package/types/config.d.ts +0 -1
  94. package/types/lhr/lhr.d.ts +0 -2
  95. package/core/audits/no-unload-listeners.d.ts +0 -16
  96. package/core/audits/no-unload-listeners.js +0 -86
  97. package/core/config/metrics-to-audits.d.ts +0 -19
  98. package/core/config/metrics-to-audits.js +0 -60
  99. package/core/gather/gatherers/global-listeners.d.ts +0 -27
  100. package/core/gather/gatherers/global-listeners.js +0 -108
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Ge,w,ln,ai,Ae,pn,an,un,He={},cn=[],ii=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ae(e,t){for(var n in t)e[n]=t[n];return e}function dn(e){var t=e.parentNode;t&&t.removeChild(e)}function wt(e,t,n){var a,i,o,r={};for(o in t)o=="key"?a=t[o]:o=="ref"?i=t[o]:r[o]=t[o];if(arguments.length>2&&(r.children=arguments.length>3?Ge.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)r[o]===void 0&&(r[o]=e.defaultProps[o]);return Me(e,r,a,i,null)}function Me(e,t,n,a,i){var o={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++ln};return i==null&&w.vnode!=null&&w.vnode(o),o}function H(e){return e.children}function Fe(e,t){this.props=e,this.context=t}function ge(e,t){if(t==null)return e.__?ge(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?ge(e):null}function mn(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return mn(e)}}function _t(e){(!e.__d&&(e.__d=!0)&&Ae.push(e)&&!Be.__r++||an!==w.debounceRendering)&&((an=w.debounceRendering)||pn)(Be)}function Be(){for(var e;Be.__r=Ae.length;)e=Ae.sort(function(t,n){return t.__v.__b-n.__v.__b}),Ae=[],e.some(function(t){var n,a,i,o,r,s;t.__d&&(r=(o=(n=t).__v).__e,(s=n.__P)&&(a=[],(i=ae({},o)).__v=o.__v+1,Ct(s,o,i,n.__n,s.ownerSVGElement!==void 0,o.__h!=null?[r]:null,a,r??ge(o),o.__h),vn(a,o),o.__e!=r&&mn(o)))})}function hn(e,t,n,a,i,o,r,s,p,c){var l,m,d,h,g,y,f,_=a&&a.__k||cn,A=_.length;for(n.__k=[],l=0;l<t.length;l++)if((h=n.__k[l]=(h=t[l])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?Me(null,h,null,null,h):Array.isArray(h)?Me(H,{children:h},null,null,null):h.__b>0?Me(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(d=_[l])===null||d&&h.key==d.key&&h.type===d.type)_[l]=void 0;else for(m=0;m<A;m++){if((d=_[m])&&h.key==d.key&&h.type===d.type){_[m]=void 0;break}d=null}Ct(e,h,d=d||He,i,o,r,s,p,c),g=h.__e,(m=h.ref)&&d.ref!=m&&(f||(f=[]),d.ref&&f.push(d.ref,null,h),f.push(m,h.__c||g,h)),g!=null?(y==null&&(y=g),typeof h.type=="function"&&h.__k===d.__k?h.__d=p=gn(h,p,e):p=fn(e,h,d,_,g,p),typeof n.type=="function"&&(n.__d=p)):p&&d.__e==p&&p.parentNode!=e&&(p=ge(d))}for(n.__e=y,l=A;l--;)_[l]!=null&&(typeof n.type=="function"&&_[l].__e!=null&&_[l].__e==n.__d&&(n.__d=ge(a,l+1)),yn(_[l],_[l]));if(f)for(l=0;l<f.length;l++)bn(f[l],f[++l],f[++l])}function gn(e,t,n){for(var a,i=e.__k,o=0;i&&o<i.length;o++)(a=i[o])&&(a.__=e,t=typeof a.type=="function"?gn(a,t,n):fn(n,a,a,i,a.__e,t));return t}function fn(e,t,n,a,i,o){var r,s,p;if(t.__d!==void 0)r=t.__d,t.__d=void 0;else if(n==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(i),r=null;else{for(s=o,p=0;(s=s.nextSibling)&&p<a.length;p+=2)if(s==i)break e;e.insertBefore(i,o),r=o}return r!==void 0?r:i.nextSibling}function oi(e,t,n,a,i){var o;for(o in n)o==="children"||o==="key"||o in t||Oe(e,o,null,n[o],a);for(o in t)i&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||Oe(e,o,t[o],n[o],a)}function on(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||ii.test(t)?n:n+"px"}function Oe(e,t,n,a,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof a=="string"&&(e.style.cssText=a=""),a)for(t in a)n&&t in n||on(e.style,t,"");if(n)for(t in n)a&&n[t]===a[t]||on(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?a||e.addEventListener(t,o?sn:rn,o):e.removeEventListener(t,o?sn:rn,o);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,n):e.removeAttribute(t))}}function rn(e){this.l[e.type+!1](w.event?w.event(e):e)}function sn(e){this.l[e.type+!0](w.event?w.event(e):e)}function Ct(e,t,n,a,i,o,r,s,p){var c,l,m,d,h,g,y,f,_,A,P,S=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(p=n.__h,s=t.__e=n.__e,t.__h=null,o=[s]),(c=w.__b)&&c(t);try{e:if(typeof S=="function"){if(f=t.props,_=(c=S.contextType)&&a[c.__c],A=c?_?_.props.value:c.__:a,n.__c?y=(l=t.__c=n.__c).__=l.__E:("prototype"in S&&S.prototype.render?t.__c=l=new S(f,A):(t.__c=l=new Fe(f,A),l.constructor=S,l.render=si),_&&_.sub(l),l.props=f,l.state||(l.state={}),l.context=A,l.__n=a,m=l.__d=!0,l.__h=[]),l.__s==null&&(l.__s=l.state),S.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=ae({},l.__s)),ae(l.__s,S.getDerivedStateFromProps(f,l.__s))),d=l.props,h=l.state,m)S.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(S.getDerivedStateFromProps==null&&f!==d&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(f,A),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(f,l.__s,A)===!1||t.__v===n.__v){l.props=f,l.state=l.__s,t.__v!==n.__v&&(l.__d=!1),l.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(T){T&&(T.__=t)}),l.__h.length&&r.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(f,l.__s,A),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(d,h,g)})}l.context=A,l.props=f,l.state=l.__s,(c=w.__r)&&c(t),l.__d=!1,l.__v=t,l.__P=e,c=l.render(l.props,l.state,l.context),l.state=l.__s,l.getChildContext!=null&&(a=ae(ae({},a),l.getChildContext())),m||l.getSnapshotBeforeUpdate==null||(g=l.getSnapshotBeforeUpdate(d,h)),P=c!=null&&c.type===H&&c.key==null?c.props.children:c,hn(e,Array.isArray(P)?P:[P],t,n,a,i,o,r,s,p),l.base=t.__e,t.__h=null,l.__h.length&&r.push(l),y&&(l.__E=l.__=null),l.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ri(n.__e,t,n,a,i,o,r,p);(c=w.diffed)&&c(t)}catch(T){t.__v=null,(p||o!=null)&&(t.__e=s,t.__h=!!p,o[o.indexOf(s)]=null),w.__e(T,t,n)}}function vn(e,t){w.__c&&w.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(a){a.call(n)})}catch(a){w.__e(a,n.__v)}})}function ri(e,t,n,a,i,o,r,s){var p,c,l,m=n.props,d=t.props,h=t.type,g=0;if(h==="svg"&&(i=!0),o!=null){for(;g<o.length;g++)if((p=o[g])&&"setAttribute"in p==!!h&&(h?p.localName===h:p.nodeType===3)){e=p,o[g]=null;break}}if(e==null){if(h===null)return document.createTextNode(d);e=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),o=null,s=!1}if(h===null)m===d||s&&e.data===d||(e.data=d);else{if(o=o&&Ge.call(e.childNodes),c=(m=n.props||He).dangerouslySetInnerHTML,l=d.dangerouslySetInnerHTML,!s){if(o!=null)for(m={},g=0;g<e.attributes.length;g++)m[e.attributes[g].name]=e.attributes[g].value;(l||c)&&(l&&(c&&l.__html==c.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(oi(e,d,m,i,s),l)t.__k=[];else if(g=t.props.children,hn(e,Array.isArray(g)?g:[g],t,n,a,i&&h!=="foreignObject",o,r,o?o[0]:n.__k&&ge(n,0),s),o!=null)for(g=o.length;g--;)o[g]!=null&&dn(o[g]);s||("value"in d&&(g=d.value)!==void 0&&(g!==e.value||h==="progress"&&!g||h==="option"&&g!==m.value)&&Oe(e,"value",g,m.value,!1),"checked"in d&&(g=d.checked)!==void 0&&g!==e.checked&&Oe(e,"checked",g,m.checked,!1))}return e}function bn(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(a){w.__e(a,n)}}function yn(e,t,n){var a,i;if(w.unmount&&w.unmount(e),(a=e.ref)&&(a.current&&a.current!==e.__e||bn(a,null,t)),(a=e.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(o){w.__e(o,t)}a.base=a.__P=null}if(a=e.__k)for(i=0;i<a.length;i++)a[i]&&yn(a[i],t,typeof e.type!="function");n||e.__e==null||dn(e.__e),e.__e=e.__d=void 0}function si(e,t,n){return this.constructor(e,n)}function _n(e,t,n){var a,i,o;w.__&&w.__(e,t),i=(a=typeof n=="function")?null:n&&n.__k||t.__k,o=[],Ct(t,e=(!a&&n||t).__k=wt(H,null,[e]),i||He,He,t.ownerSVGElement!==void 0,!a&&n?[n]:i?null:t.firstChild?Ge.call(t.childNodes):null,o,!a&&n?n:i?i.__e:t.firstChild,a),vn(o,e)}function Pe(e,t){var n={__c:t="__cC"+un++,__:e,Consumer:function(a,i){return a.children(i)},Provider:function(a){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(r){this.props.value!==r.value&&i.some(_t)},this.sub=function(r){i.push(r);var s=r.componentWillUnmount;r.componentWillUnmount=function(){i.splice(i.indexOf(r),1),s&&s.call(r)}}),a.children}};return n.Provider.__=n.Consumer.contextType=n}Ge=cn.slice,w={__e:function(e,t,n,a){for(var i,o,r;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),r=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,a||{}),r=i.__d),r)return i.__E=i}catch(s){e=s}throw e}},ln=0,ai=function(e){return e!=null&&e.constructor===void 0},Fe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ae({},this.state),typeof e=="function"&&(e=e(ae({},n),this.props)),e&&ae(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),_t(this))},Fe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_t(this))},Fe.prototype.render=H,Ae=[],pn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Be.__r=0,un=0;var fe,W,wn,We=0,En=[],Cn=w.__b,xn=w.__r,Sn=w.diffed,kn=w.__c,An=w.unmount;function Ee(e,t){w.__h&&w.__h(W,e,We||t),We=0;var n=W.__H||(W.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ie(e){return We=1,li(Ln,e)}function li(e,t,n){var a=Ee(fe++,2);return a.t=e,a.__c||(a.__=[n?n(t):Ln(void 0,t),function(i){var o=a.t(a.__[0],i);a.__[0]!==o&&(a.__=[o,a.__[1]],a.__c.setState({}))}],a.__c=W),a.__}function $e(e,t){var n=Ee(fe++,3);!w.__s&&St(n.__H,t)&&(n.__=e,n.__H=t,W.__H.__h.push(n))}function Je(e,t){var n=Ee(fe++,4);!w.__s&&St(n.__H,t)&&(n.__=e,n.__H=t,W.__h.push(n))}function qe(e){return We=5,ee(function(){return{current:e}},[])}function ee(e,t){var n=Ee(fe++,7);return St(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Le(e){var t=W.context[e.__c],n=Ee(fe++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(W)),t.props.value):e.__}function pi(){for(var e;e=En.shift();)if(e.__P)try{e.__H.__h.forEach(Ve),e.__H.__h.forEach(xt),e.__H.__h=[]}catch(t){e.__H.__h=[],w.__e(t,e.__v)}}w.__b=function(e){W=null,Cn&&Cn(e)},w.__r=function(e){xn&&xn(e),fe=0;var t=(W=e.__c).__H;t&&(t.__h.forEach(Ve),t.__h.forEach(xt),t.__h=[])},w.diffed=function(e){Sn&&Sn(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(En.push(t)!==1&&wn===w.requestAnimationFrame||((wn=w.requestAnimationFrame)||function(n){var a,i=function(){clearTimeout(o),Pn&&cancelAnimationFrame(a),setTimeout(n)},o=setTimeout(i,100);Pn&&(a=requestAnimationFrame(i))})(pi)),W=null},w.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ve),n.__h=n.__h.filter(function(a){return!a.__||xt(a)})}catch(a){t.some(function(i){i.__h&&(i.__h=[])}),t=[],w.__e(a,n.__v)}}),kn&&kn(e,t)},w.unmount=function(e){An&&An(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Ve(a)}catch(i){t=i}}),t&&w.__e(t,n.__v))};var Pn=typeof requestAnimationFrame=="function";function Ve(e){var t=W,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),W=t}function xt(e){var t=W;e.__c=e.__(),W=t}function St(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function Ln(e,t){return typeof t=="function"?t(e):t}var ui=.8999999999999999,ci=.5,di=.49999999999999994;function mi(e){let t=Math.sign(e);e=Math.abs(e);let n=.254829592,a=-.284496736,i=1.421413741,o=-1.453152027,r=1.061405429,p=1/(1+.3275911*e),c=p*(n+p*(a+p*(i+p*(o+p*r))));return t*(1-c*Math.exp(-e*e))}function Un({median:e,p10:t},n){if(e<=0)throw new Error("median must be greater than zero");if(t<=0)throw new Error("p10 must be greater than zero");if(t>=e)throw new Error("p10 must be less than the median");if(n<=0)return 1;let a=.9061938024368232,i=Math.max(Number.MIN_VALUE,n/e),o=Math.log(i),r=Math.max(Number.MIN_VALUE,t/e),s=-Math.log(r),p=o*a/s,c=(1-mi(p))/2,l;return n<=t?l=Math.max(.9,Math.min(1,c)):n<=e?l=Math.max(ci,Math.min(ui,c)):l=Math.max(0,Math.min(di,c)),l}var te="…",gi=" ",Tn=.9,fi={PASS:{label:"pass",minScore:Tn},AVERAGE:{label:"average",minScore:.5},FAIL:{label:"fail"},ERROR:{label:"error"}},vi=["com","co","gov","edu","ac","org","go","gob","or","net","in","ne","nic","gouv","web","spb","blog","jus","kiev","mil","wi","qc","ca","bel","on"],R=class e{static get RATINGS(){return fi}static get PASS_THRESHOLD(){return Tn}static get MS_DISPLAY_VALUE(){return`%10d${gi}ms`}static getFinalDisplayedUrl(t){if(t.finalDisplayedUrl)return t.finalDisplayedUrl;if(t.finalUrl)return t.finalUrl;throw new Error("Could not determine final displayed URL")}static getMainDocumentUrl(t){return t.mainDocumentUrl||t.finalUrl}static getFullPageScreenshot(t){return t.fullPageScreenshot?t.fullPageScreenshot:t.audits["full-page-screenshot"]?.details}static getEntityFromUrl(t,n){return n&&n.find(i=>i.origins.find(o=>t.startsWith(o)))||e.getPseudoRootDomain(t)}static splitMarkdownCodeSpans(t){let n=[],a=t.split(/`(.*?)`/g);for(let i=0;i<a.length;i++){let o=a[i];if(!o)continue;let r=i%2!==0;n.push({isCode:r,text:o})}return n}static splitMarkdownLink(t){let n=[],a=t.split(/\[([^\]]+?)\]\((https?:\/\/.*?)\)/g);for(;a.length;){let[i,o,r]=a.splice(0,3);i&&n.push({isLink:!1,text:i}),o&&r&&n.push({isLink:!0,text:o,linkHref:r})}return n}static truncate(t,n,a="…"){if(t.length<=n)return t;let o=new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t)[Symbol.iterator](),r=0;for(let s=0;s<=n-a.length;s++){let p=o.next();if(p.done)return t;r=p.value.index}for(let s=0;s<a.length;s++)if(o.next().done)return t;return t.slice(0,r)+a}static getURLDisplayName(t,n){n=n||{numPathParts:void 0,preserveQuery:void 0,preserveHost:void 0};let a=n.numPathParts!==void 0?n.numPathParts:2,i=n.preserveQuery!==void 0?n.preserveQuery:!0,o=n.preserveHost||!1,r;if(t.protocol==="about:"||t.protocol==="data:")r=t.href;else{r=t.pathname;let p=r.split("/").filter(c=>c.length);a&&p.length>a&&(r=te+p.slice(-1*a).join("/")),o&&(r=`${t.host}/${r.replace(/^\//,"")}`),i&&(r=`${r}${t.search}`)}let s=64;if(t.protocol!=="data:"&&(r=r.slice(0,200),r=r.replace(/([a-f0-9]{7})[a-f0-9]{13}[a-f0-9]*/g,`$1${te}`),r=r.replace(/([a-zA-Z0-9-_]{9})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9-_]{10,}/g,`$1${te}`),r=r.replace(/(\d{3})\d{6,}/g,`$1${te}`),r=r.replace(/\u2026+/g,te),r.length>s&&r.includes("?")&&(r=r.replace(/\?([^=]*)(=)?.*/,`?$1$2${te}`),r.length>s&&(r=r.replace(/\?.*/,`?${te}`)))),r.length>s){let p=r.lastIndexOf(".");p>=0?r=r.slice(0,s-1-(r.length-p))+`${te}${r.slice(p)}`:r=r.slice(0,s-1)+te}return r}static getChromeExtensionOrigin(t){let n=new URL(t);return n.protocol+"//"+n.host}static parseURL(t){let n=new URL(t);return{file:e.getURLDisplayName(n),hostname:n.hostname,origin:n.protocol==="chrome-extension:"?e.getChromeExtensionOrigin(t):n.origin}}static createOrReturnURL(t){return t instanceof URL?t:new URL(t)}static getPseudoTld(t){let n=t.split(".").slice(-2);return vi.includes(n[0])?`.${n.join(".")}`:`.${n[n.length-1]}`}static getPseudoRootDomain(t){let n=e.createOrReturnURL(t).hostname,i=e.getPseudoTld(n).split(".");return n.split(".").slice(-i.length).join(".")}static filterRelevantLines(t,n,a){if(n.length===0)return t.slice(0,a*2+1);let i=3,o=new Set;return n=n.sort((r,s)=>(r.lineNumber||0)-(s.lineNumber||0)),n.forEach(({lineNumber:r})=>{let s=r-a,p=r+a;for(;s<1;)s++,p++;o.has(s-i-1)&&(s-=i);for(let c=s;c<=p;c++){let l=c;o.add(l)}}),t.filter(r=>o.has(r.lineNumber))}static computeLogNormalScore(t,n){let a=Un(t,n);return a>.9&&(a+=.05*(a-.9)),Math.floor(a*100)/100}};var In=0,v=class e{static i18n=null;static strings={};static reportJson=null;static apply(t){e.strings={...Ze,...t.providedStrings},e.i18n=t.i18n,e.reportJson=t.reportJson}static getUniqueSuffix(){return In++}static resetUniqueSuffix(){In=0}};var Rn="data:image/jpeg;base64,";function Nn(e){e.configSettings.locale||(e.configSettings.locale="en"),e.configSettings.formFactor||(e.configSettings.formFactor=e.configSettings.emulatedFormFactor),e.finalDisplayedUrl=R.getFinalDisplayedUrl(e),e.mainDocumentUrl=R.getMainDocumentUrl(e);for(let a of Object.values(e.audits))if((a.scoreDisplayMode==="not_applicable"||a.scoreDisplayMode==="not-applicable")&&(a.scoreDisplayMode="notApplicable"),a.scoreDisplayMode==="informative"&&(a.score=1),a.details){if((a.details.type===void 0||a.details.type==="diagnostic")&&(a.details.type="debugdata"),a.details.type==="filmstrip")for(let i of a.details.items)i.data.startsWith(Rn)||(i.data=Rn+i.data);if(a.details.type==="table")for(let i of a.details.headings){let{itemType:o,text:r}=i;o!==void 0&&(i.valueType=o,delete i.itemType),r!==void 0&&(i.label=r,delete i.text);let s=i.subItemsHeading?.itemType;i.subItemsHeading&&s!==void 0&&(i.subItemsHeading.valueType=s,delete i.subItemsHeading.itemType)}if(a.id==="third-party-summary"&&(a.details.type==="opportunity"||a.details.type==="table")){let{headings:i,items:o}=a.details;if(i[0].valueType==="link"){i[0].valueType="text";for(let r of o)typeof r.entity=="object"&&r.entity.type==="link"&&(r.entity=r.entity.text);a.details.isEntityGrouped=!0}}}let[t]=e.lighthouseVersion.split(".").map(Number),n=e.categories.performance;if(t<9&&n){e.categoryGroups||(e.categoryGroups={}),e.categoryGroups.hidden={title:""};for(let a of n.auditRefs)a.group?["load-opportunities","diagnostics"].includes(a.group)&&delete a.group:a.group="hidden"}if(e.environment||(e.environment={benchmarkIndex:0,networkUserAgent:e.userAgent,hostUserAgent:e.userAgent}),e.configSettings.screenEmulation||(e.configSettings.screenEmulation={width:-1,height:-1,deviceScaleFactor:-1,mobile:/mobile/i.test(e.environment.hostUserAgent),disabled:!1}),e.i18n||(e.i18n={}),e.audits["full-page-screenshot"]){let a=e.audits["full-page-screenshot"].details;a?e.fullPageScreenshot={screenshot:a.screenshot,nodes:a.nodes}:e.fullPageScreenshot=null,delete e.audits["full-page-screenshot"]}}var ne=R.RATINGS,E=class e{static prepareReportResult(t){let n=JSON.parse(JSON.stringify(t));Nn(n);for(let i of Object.values(n.audits))i.details&&(i.details.type==="opportunity"||i.details.type==="table")&&!i.details.isEntityGrouped&&n.entities&&e.classifyEntities(n.entities,i.details);if(typeof n.categories!="object")throw new Error("No categories provided.");let a=new Map;for(let i of Object.values(n.categories))i.auditRefs.forEach(o=>{o.relevantAudits&&o.relevantAudits.forEach(r=>{let s=a.get(r)||[];s.push(o),a.set(r,s)})}),i.auditRefs.forEach(o=>{let r=n.audits[o.id];o.result=r,a.has(o.id)&&(o.relevantMetrics=a.get(o.id)),n.stackPacks&&n.stackPacks.forEach(s=>{s.descriptions[o.id]&&(o.stackPacks=o.stackPacks||[],o.stackPacks.push({title:s.title,iconDataURL:s.iconDataURL,description:s.descriptions[o.id]}))})});return n}static getUrlLocatorFn(t){let n=t.find(i=>i.valueType==="url")?.key;if(n&&typeof n=="string")return i=>{let o=i[n];if(typeof o=="string")return o};let a=t.find(i=>i.valueType==="source-location")?.key;if(a)return i=>{let o=i[a];if(typeof o=="object"&&o.type==="source-location")return o.url}}static classifyEntities(t,n){let{items:a,headings:i}=n;if(!a.length||a.some(r=>r.entity))return;let o=e.getUrlLocatorFn(i);if(o)for(let r of a){let s=o(r);if(!s)continue;let p="";try{p=R.parseURL(s).origin}catch{}if(!p)continue;let c=t.find(l=>l.origins.includes(p));c&&(r.entity=c.name)}}static getTableItemSortComparator(t){return(n,a)=>{for(let i of t){let o=n[i],r=a[i];if((typeof o!=typeof r||!["number","string"].includes(typeof o))&&console.warn(`Warning: Attempting to sort unsupported value type: ${i}.`),typeof o=="number"&&typeof r=="number"&&o!==r)return r-o;if(typeof o=="string"&&typeof r=="string"&&o!==r)return o.localeCompare(r)}return 0}}static getEmulationDescriptions(t){let n,a,i,o=t.throttling,r=v.i18n,s=v.strings;switch(t.throttlingMethod){case"provided":i=a=n=s.throttlingProvided;break;case"devtools":{let{cpuSlowdownMultiplier:d,requestLatencyMs:h}=o;n=`${r.formatNumber(d)}x slowdown (DevTools)`,a=`${r.formatMilliseconds(h)} HTTP RTT, ${r.formatKbps(o.downloadThroughputKbps)} down, ${r.formatKbps(o.uploadThroughputKbps)} up (DevTools)`,i=h===150*3.75&&o.downloadThroughputKbps===1.6*1024*.9&&o.uploadThroughputKbps===750*.9?s.runtimeSlow4g:s.runtimeCustom;break}case"simulate":{let{cpuSlowdownMultiplier:d,rttMs:h,throughputKbps:g}=o;n=`${r.formatNumber(d)}x slowdown (Simulated)`,a=`${r.formatMilliseconds(h)} TCP RTT, ${r.formatKbps(g)} throughput (Simulated)`,i=h===150&&g===1.6*1024?s.runtimeSlow4g:s.runtimeCustom;break}default:i=n=a=s.runtimeUnknown}let p=t.channel==="devtools"?!1:t.screenEmulation.disabled,c=t.channel==="devtools"?t.formFactor==="mobile":t.screenEmulation.mobile,l=s.runtimeMobileEmulation;p?l=s.runtimeNoEmulation:c||(l=s.runtimeDesktopEmulation);let m=p?void 0:`${t.screenEmulation.width}x${t.screenEmulation.height}, DPR ${t.screenEmulation.deviceScaleFactor}`;return{deviceEmulation:l,screenEmulation:m,cpuThrottling:n,networkThrottling:a,summary:i}}static showAsPassed(t){switch(t.scoreDisplayMode){case"manual":case"notApplicable":return!0;case"error":case"informative":return!1;case"numeric":case"binary":default:return Number(t.score)>=ne.PASS.minScore}}static calculateRating(t,n){if(n==="manual"||n==="notApplicable")return ne.PASS.label;if(n==="error")return ne.ERROR.label;if(t===null)return ne.FAIL.label;let a=ne.FAIL.label;return t>=ne.PASS.minScore?a=ne.PASS.label:t>=ne.AVERAGE.minScore&&(a=ne.AVERAGE.label),a}static calculateCategoryFraction(t){let n=0,a=0,i=0,o=0;for(let r of t.auditRefs){let s=e.showAsPassed(r.result);if(!(r.group==="hidden"||r.result.scoreDisplayMode==="manual"||r.result.scoreDisplayMode==="notApplicable")){if(r.result.scoreDisplayMode==="informative"){s||++i;continue}++n,o+=r.weight,s&&a++}}return{numPassed:a,numPassableAudits:n,numInformative:i,totalWeight:o}}static isPluginCategory(t){return t.startsWith("lighthouse-plugin-")}static shouldDisplayAsFraction(t){return t==="timespan"||t==="snapshot"}},Ze={varianceDisclaimer:"Values are estimated and may vary. The [performance score is calculated](https://developer.chrome.com/docs/lighthouse/performance/performance-scoring/) directly from these metrics.",calculatorLink:"See calculator.",showRelevantAudits:"Show audits relevant to:",opportunityResourceColumnLabel:"Opportunity",opportunitySavingsColumnLabel:"Estimated Savings",errorMissingAuditInfo:"Report error: no audit information",errorLabel:"Error!",warningHeader:"Warnings: ",warningAuditsGroupTitle:"Passed audits but with warnings",passedAuditsGroupTitle:"Passed audits",notApplicableAuditsGroupTitle:"Not applicable",manualAuditsGroupTitle:"Additional items to manually check",toplevelWarningsMessage:"There were issues affecting this run of Lighthouse:",crcInitialNavigation:"Initial Navigation",crcLongestDurationLabel:"Maximum critical path latency:",snippetExpandButtonLabel:"Expand snippet",snippetCollapseButtonLabel:"Collapse snippet",lsPerformanceCategoryDescription:"[Lighthouse](https://developers.google.com/web/tools/lighthouse/) analysis of the current page on an emulated mobile network. Values are estimated and may vary.",labDataTitle:"Lab Data",thirdPartyResourcesLabel:"Show 3rd-party resources",viewTreemapLabel:"View Treemap",viewTraceLabel:"View Trace",dropdownPrintSummary:"Print Summary",dropdownPrintExpanded:"Print Expanded",dropdownCopyJSON:"Copy JSON",dropdownSaveHTML:"Save as HTML",dropdownSaveJSON:"Save as JSON",dropdownViewer:"Open in Viewer",dropdownSaveGist:"Save as Gist",dropdownDarkTheme:"Toggle Dark Theme",dropdownViewUnthrottledTrace:"View Unthrottled Trace",runtimeSettingsDevice:"Device",runtimeSettingsNetworkThrottling:"Network throttling",runtimeSettingsCPUThrottling:"CPU throttling",runtimeSettingsUANetwork:"User agent (network)",runtimeSettingsBenchmark:"Unthrottled CPU/Memory Power",runtimeSettingsAxeVersion:"Axe version",runtimeSettingsScreenEmulation:"Screen emulation",footerIssue:"File an issue",runtimeNoEmulation:"No emulation",runtimeMobileEmulation:"Emulated Moto G Power",runtimeDesktopEmulation:"Emulated Desktop",runtimeUnknown:"Unknown",runtimeSingleLoad:"Single page session",runtimeAnalysisWindow:"Initial page load",runtimeAnalysisWindowTimespan:"User interactions timespan",runtimeAnalysisWindowSnapshot:"Point-in-time snapshot",runtimeSingleLoadTooltip:"This data is taken from a single page session, as opposed to field data summarizing many sessions.",throttlingProvided:"Provided by environment",show:"Show",hide:"Hide",expandView:"Expand view",collapseView:"Collapse view",runtimeSlow4g:"Slow 4G throttling",runtimeCustom:"Custom throttling",firstPartyChipLabel:"1st party",openInANewTabTooltip:"Open in a new tab",unattributable:"Unattributable",pwaRemovalMessage:"As per [Chrome’s updated Installability Criteria](https://developer.chrome.com/blog/update-install-criteria), Lighthouse will be deprecating the PWA category in a future release. Please refer to the [updated PWA documentation](https://developer.chrome.com/docs/devtools/progressive-web-apps/) for future PWA testing."};var bi=0;function u(e,t,n,a,i){var o,r,s={};for(r in t)r=="ref"?o=t[r]:s[r]=t[r];var p={type:e,props:s,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--bi,__source:i,__self:a};if(typeof e=="function"&&(o=e.defaultProps))for(r in o)s[r]===void 0&&(s[r]=o[r]);return w.vnode&&w.vnode(p),p}var Dn=()=>u("svg",{width:"14",viewBox:"0 0 18 16",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 2C0 1.17 0.67 0.5 1.5 0.5C2.33 0.5 3 1.17 3 2C3 2.83 2.33 3.5 1.5 3.5C0.67 3.5 0 2.83 0 2ZM0 8C0 7.17 0.67 6.5 1.5 6.5C2.33 6.5 3 7.17 3 8C3 8.83 2.33 9.5 1.5 9.5C0.67 9.5 0 8.83 0 8ZM1.5 12.5C0.67 12.5 0 13.18 0 14C0 14.82 0.68 15.5 1.5 15.5C2.32 15.5 3 14.82 3 14C3 13.18 2.33 12.5 1.5 12.5ZM18 15H5V13H18V15ZM5 9H18V7H5V9ZM5 3V1H18V3H5Z",fill:"currentColor"})}),Ke=()=>u("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a navigation report",children:u("circle",{cx:"8",cy:"8",r:"7",fill:"none",stroke:"currentColor","stroke-width":"2"})}),Xe=()=>u("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a timespan report",children:[u("circle",{cx:"8",cy:"8",r:"7",fill:"none",stroke:"currentColor","stroke-width":"2"}),u("path",{d:"m 8,4 v 4 l 4,1.9999998",stroke:"currentColor","stroke-width":"1.5"})]}),Ye=()=>u("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a snapshot report",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M 12.2038,12.2812 C 11.1212,13.3443 9.6372,14 8,14 7.81038,14 7.62281,13.9912 7.43768,13.974 L 10.3094,9 Z M 12.8925,11.4741 10.0207,6.5 H 13.811 C 13.9344,6.97943 14,7.48205 14,8 c 0,1.2947 -0.4101,2.4937 -1.1075,3.4741 z M 13.456,5.5 H 7.71135 L 9.6065,2.21749 C 11.3203,2.69259 12.7258,3.90911 13.456,5.5 Z M 8.5624,2.02601 C 8.3772,2.0088 8.1896,2 8,2 6.36282,2 4.8788,2.65572 3.79622,3.71885 L 5.69061,7.00002 Z M 3.10749,4.52594 C 2.4101,5.5063 2,6.70526 2,8 2,8.5179 2.06563,9.0206 2.18903,9.5 H 5.97927 Z M 2.54404,10.5 c 0.73017,1.5909 2.1357,2.8074 3.84949,3.2825 L 8.2887,10.5 Z M 16,8 c 0,4.4183 -3.5817,8 -8,8 C 3.58172,16 0,12.4183 0,8 0,3.58172 3.58172,0 8,0 c 4.4183,0 8,3.58172 8,8 z",fill:"currentColor"})}),zn=()=>u("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",role:"img","aria-label":"Icon representing a close action",children:[u("path",{d:"M0 0h24v24H0V0z",fill:"none"}),u("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})]}),jn=()=>u("svg",{width:"15",height:"12",viewBox:"0 0 15 12",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.33317 2.00008H13.9998V0.666748H3.33317C2.59984 0.666748 1.99984 1.26675 1.99984 2.00008V9.33341H0.666504V11.3334H7.99984V9.33341H3.33317V2.00008ZM13.9998 3.33341H9.99984C9.63317 3.33341 9.33317 3.63341 9.33317 4.00008V10.6667C9.33317 11.0334 9.63317 11.3334 9.99984 11.3334H13.9998C14.3665 11.3334 14.6665 11.0334 14.6665 10.6667V4.00008C14.6665 3.63341 14.3665 3.33341 13.9998 3.33341ZM10.6665 9.33341H13.3332V4.66675H10.6665V9.33341Z",fill:"currentColor"})}),Mn=()=>u("svg",{width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.666687 3.26663L2.00002 4.59997C3.92002 2.67997 6.52669 1.87997 9.02002 2.18663L9.81335 0.399966C6.59335 -0.173367 3.16002 0.779966 0.666687 3.26663ZM10.6 0.599966C10.4867 0.599966 10.3867 0.659966 10.3267 0.753299L10.28 0.853299L6.82669 8.61996C6.72002 8.8133 6.65335 9.02663 6.65335 9.25996C6.65335 9.99996 7.25335 10.6 7.99335 10.6C8.63335 10.6 9.17335 10.1466 9.30002 9.53996L9.30669 9.51997L10.9334 0.933299C10.9334 0.746633 10.7867 0.599966 10.6 0.599966ZM15.3334 3.26663L14 4.59997C13.1867 3.78663 12.2534 3.17997 11.2534 2.76663L11.6067 0.886633C12.9667 1.38663 14.24 2.1733 15.3334 3.26663ZM11.3334 7.26663L12.6667 5.9333C12.1334 5.39997 11.5334 4.98663 10.8934 4.6733L10.5267 6.61997C10.8067 6.79997 11.08 7.0133 11.3334 7.26663ZM4.66669 7.26663L3.33335 5.9333C4.67335 4.5933 6.45335 3.95997 8.20669 4.0133L7.35335 5.9333C6.37335 6.0733 5.42002 6.5133 4.66669 7.26663Z",fill:"currentColor"})}),Fn=()=>u("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5 7.16667V5.5H13.8333V3.83333C13.8333 2.91667 13.0833 2.16667 12.1667 2.16667H10.5V0.5H8.83333V2.16667H7.16667V0.5H5.5V2.16667H3.83333C2.91667 2.16667 2.16667 2.91667 2.16667 3.83333V5.5H0.5V7.16667H2.16667V8.83333H0.5V10.5H2.16667V12.1667C2.16667 13.0833 2.91667 13.8333 3.83333 13.8333H5.5V15.5H7.16667V13.8333H8.83333V15.5H10.5V13.8333H12.1667C13.0833 13.8333 13.8333 13.0833 13.8333 12.1667V10.5H15.5V8.83333H13.8333V7.16667H15.5ZM10.5 5.5H5.5V10.5H10.5V5.5ZM3.83333 12.1667H12.1667V3.83333H3.83333V12.1667Z",fill:"currentColor"})}),Hn=()=>u("svg",{viewBox:"0 0 18 12",width:"18",height:"12",role:"img",children:[u("rect",{width:"18",height:"2",fill:"currentColor"}),u("rect",{y:"5",width:"18",height:"2",fill:"currentColor"}),u("rect",{y:"10",width:"18",height:"2",fill:"currentColor"})]}),Bn=()=>u("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 7C13 10.3137 10.3137 13 7 13C3.68629 13 1 10.3137 1 7C1 3.68629 3.68629 1 7 1C10.3137 1 13 3.68629 13 7ZM14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0C10.866 0 14 3.13401 14 7ZM7.66658 11H6.33325V9.66667H7.66658V11ZM4.33325 5.66667C4.33325 4.19333 5.52659 3 6.99992 3C8.47325 3 9.66658 4.19333 9.66658 5.66667C9.66658 6.52194 9.1399 6.98221 8.62709 7.43036C8.1406 7.85551 7.66658 8.26975 7.66658 9H6.33325C6.33325 7.78582 6.96133 7.30439 7.51355 6.88112C7.94674 6.54907 8.33325 6.25281 8.33325 5.66667C8.33325 4.93333 7.73325 4.33333 6.99992 4.33333C6.26658 4.33333 5.66658 4.93333 5.66658 5.66667H4.33325Z",fill:"currentColor"})});var kt=Pe(void 0),At=Pe({});function On(e){return new URLSearchParams(location.hash.replace("#","?")).get(e)}function ve(...e){let t=[];for(let n of e){if(!n)continue;if(typeof n=="string"){t.push(n);continue}let a=Object.entries(n).filter(([i,o])=>o).map(([i])=>i);t.push(...a)}return t.join(" ")}function Gn(e){let{width:t,height:n}=e.configSettings.screenEmulation;return{width:t,height:n}}function Vn(e){let t=e.audits["screenshot-thumbnails"];return t&&t.details&&t.details.type==="filmstrip"&&t.details.items||void 0}function Qe(e,t){switch(e){case"navigation":return t.navigationDescription;case"timespan":return t.timespanDescription;case"snapshot":return t.snapshotDescription}}function J(){let e=Le(kt);if(!e)throw Error("useFlowResult must be called in the FlowResultContext");return e}function yi(...e){let[t,n]=ie(e.map(On));return $e(()=>{function a(){let i=e.map(On);i.every((o,r)=>o===t[r])||n(i)}return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[t]),t}function be(){let e=J(),[t,n]=yi("index","anchor");return ee(()=>{if(!t)return null;let a=Number(t);if(!Number.isFinite(a))return console.warn(`Invalid hash index: ${t}`),null;let i=e.steps[a];return i?{currentLhr:i.lhr,index:a,anchor:n}:(console.warn(`No flow step at index ${a}`),null)},[t,e,n])}function oe(e,t){let n=qe(null);return Je(()=>{if(!n.current)return;let a=e();return n.current.append(a),()=>{n.current?.contains(a)&&n.current.removeChild(a)}},t),n}function Wn(){return Le(At)}var _i=500,q=()=>u("div",{className:"Separator",role:"separator"}),Pt=({mode:e})=>u(H,{children:[e==="navigation"&&u(Ke,{}),e==="timespan"&&u(Xe,{}),e==="snapshot"&&u(Ye,{})]}),re=({mode:e})=>u("div",{className:"FlowSegment",children:[u("div",{className:"FlowSegment__top-line"}),e&&u(Pt,{mode:e}),u("div",{className:"FlowSegment__bottom-line"})]}),wi=({frames:e,width:t,height:n})=>{let[a,i]=ie(0),o=a%e.length;return $e(()=>{let r=setInterval(()=>i(s=>(s+1)%e.length),_i);return()=>clearInterval(r)},[e.length]),u("img",{className:"FlowStepThumbnail","data-testid":"FlowStepAnimatedThumbnail",src:e[o].data,style:{width:t,height:n},alt:"Animated screenshots of a page tested by Lighthouse"})},et=({lhr:e,width:t,height:n})=>{let a=Vn(e),i=Gn(e);if(t&&n===void 0?n=i.height*t/i.width:n&&t===void 0&&(t=i.width*n/i.height),!t||!n)return console.warn(new Error("FlowStepThumbnail requested without any dimensions").stack),u(H,{});let o;if(a?.length){if(o=a[a.length-1].data,e.gatherMode==="timespan")return u(wi,{frames:a,width:t,height:n})}else o=R.getFullPageScreenshot(e)?.screenshot.data;return u(H,{children:o&&u("img",{className:"FlowStepThumbnail",src:o,style:{width:t,height:n},alt:"Screenshot of a page tested by Lighthouse"})})};var Et=function(e,t){return Et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},Et(e,t)};function Ue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Et(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var X=function(){return X=Object.assign||function(t){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},X.apply(this,arguments)};function $n(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n}function tt(e,t,n){if(n||arguments.length===2)for(var a=0,i=t.length,o;a<i;a++)(o||!(a in t))&&(o||(o=Array.prototype.slice.call(t,0,a)),o[a]=t[a]);return e.concat(o||Array.prototype.slice.call(t))}var ye=function(){return ye=Object.assign||function(t){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ye.apply(this,arguments)};var k;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(k||(k={}));var I;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(I||(I={}));var pe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(pe||(pe={}));function Lt(e){return e.type===I.literal}function Jn(e){return e.type===I.argument}function nt(e){return e.type===I.number}function at(e){return e.type===I.date}function it(e){return e.type===I.time}function ot(e){return e.type===I.select}function rt(e){return e.type===I.plural}function qn(e){return e.type===I.pound}function st(e){return e.type===I.tag}function lt(e){return!!(e&&typeof e=="object"&&e.type===pe.number)}function Te(e){return!!(e&&typeof e=="object"&&e.type===pe.dateTime)}var Ut=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;var Ci=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Zn(e){var t={};return e.replace(Ci,function(n){var a=n.length;switch(n[0]){case"G":t.era=a===4?"long":a===5?"narrow":"short";break;case"y":t.year=a===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][a-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=a===4?"short":a===5?"narrow":"short";break;case"e":if(a<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][a-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][a-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][a-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][a-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][a-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][a-1];break;case"s":t.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=a<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var N=function(){return N=Object.assign||function(t){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},N.apply(this,arguments)};var Kn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ea(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Kn).filter(function(d){return d.length>0}),n=[],a=0,i=t;a<i.length;a++){var o=i[a],r=o.split("/");if(r.length===0)throw new Error("Invalid number skeleton");for(var s=r[0],p=r.slice(1),c=0,l=p;c<l.length;c++){var m=l[c];if(m.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:p})}return n}function xi(e){return e.replace(/^(.*?)-/,"")}var Xn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ta=/^(@+)?(\+|#+)?[rs]?$/g,Si=/(\*)(0+)|(#+)(0+)|(0+)/g,na=/^(0+)$/;function Yn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ta,function(n,a,i){return typeof i!="string"?(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length):i==="+"?t.minimumSignificantDigits=a.length:a[0]==="#"?t.maximumSignificantDigits=a.length:(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length+(typeof i=="string"?i.length:0)),""}),t}function aa(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ki(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!na.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Qn(e){var t={},n=aa(e);return n||t}function ia(e){for(var t={},n=0,a=e;n<a.length;n++){var i=a[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=xi(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=N(N(N({},t),{notation:"scientific"}),i.options.reduce(function(p,c){return N(N({},p),Qn(c))},{}));continue;case"engineering":t=N(N(N({},t),{notation:"engineering"}),i.options.reduce(function(p,c){return N(N({},p),Qn(c))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Si,function(p,c,l,m,d,h){if(c)t.minimumIntegerDigits=l.length;else{if(m&&d)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(na.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Xn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Xn,function(p,c,l,m,d,h){return l==="*"?t.minimumFractionDigits=c.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:d&&h?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+h.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?t=N(N({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=N(N({},t),Yn(o)));continue}if(ta.test(i.stem)){t=N(N({},t),Yn(i.stem));continue}var r=aa(i.stem);r&&(t=N(N({},t),r));var s=ki(i.stem);s&&(t=N(N({},t),s))}return t}var Ie={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function oa(e,t){for(var n="",a=0;a<e.length;a++){var i=e.charAt(a);if(i==="j"){for(var o=0;a+1<e.length&&e.charAt(a+1)===i;)o++,a++;var r=1+(o&1),s=o<2?1:3+(o>>1),p="a",c=Ai(t);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=p;for(;r-- >0;)n=c+n}else i==="J"?n+="H":n+=i}return n}function Ai(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,a;n!=="root"&&(a=e.maximize().region);var i=Ie[a||""]||Ie[n||""]||Ie["".concat(n,"-001")]||Ie["001"];return i[0]}var Tt,Pi=new RegExp("^".concat(Ut.source,"*")),Ei=new RegExp("".concat(Ut.source,"*$"));function L(e,t){return{start:e,end:t}}var Li=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ui=!!String.fromCodePoint,Ti=!!Object.fromEntries,Ii=!!String.prototype.codePointAt,Ri=!!String.prototype.trimStart,Ni=!!String.prototype.trimEnd,Di=!!Number.isSafeInteger,zi=Di?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Rt=!0;try{ra=ua("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Rt=((Tt=ra.exec("a"))===null||Tt===void 0?void 0:Tt[0])==="a"}catch{Rt=!1}var ra,sa=Li?function(t,n,a){return t.startsWith(n,a)}:function(t,n,a){return t.slice(a,a+n.length)===n},Nt=Ui?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var a="",i=t.length,o=0,r;i>o;){if(r=t[o++],r>1114111)throw RangeError(r+" is not a valid code point");a+=r<65536?String.fromCharCode(r):String.fromCharCode(((r-=65536)>>10)+55296,r%1024+56320)}return a},la=Ti?Object.fromEntries:function(t){for(var n={},a=0,i=t;a<i.length;a++){var o=i[a],r=o[0],s=o[1];n[r]=s}return n},pa=Ii?function(t,n){return t.codePointAt(n)}:function(t,n){var a=t.length;if(!(n<0||n>=a)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===a||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},ji=Ri?function(t){return t.trimStart()}:function(t){return t.replace(Pi,"")},Mi=Ni?function(t){return t.trimEnd()}:function(t){return t.replace(Ei,"")};function ua(e,t){return new RegExp(e,t)}var Dt;Rt?(It=ua("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Dt=function(t,n){var a;It.lastIndex=n;var i=It.exec(t);return(a=i[1])!==null&&a!==void 0?a:""}):Dt=function(t,n){for(var a=[];;){var i=pa(t,n);if(i===void 0||da(i)||Bi(i))break;a.push(i),n+=i>=65536?2:1}return Nt.apply(void 0,a)};var It,ca=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,a){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var r=this.parseArgument(t,a);if(r.err)return r;i.push(r.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:I.pound,location:L(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(k.UNMATCHED_CLOSING_TAG,L(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&zt(this.peek()||0)){var r=this.parseTag(t,n);if(r.err)return r;i.push(r.val)}else{var r=this.parseLiteral(t,n);if(r.err)return r;i.push(r.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var a=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:I.literal,value:"<".concat(i,"/>"),location:L(a,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var r=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!zt(this.char()))return this.error(k.INVALID_TAG,L(s,this.clonePosition()));var p=this.clonePosition(),c=this.parseTagName();return i!==c?this.error(k.UNMATCHED_CLOSING_TAG,L(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:I.tag,value:i,children:r,location:L(a,this.clonePosition())},err:null}:this.error(k.INVALID_TAG,L(s,this.clonePosition())))}else return this.error(k.UNCLOSED_TAG,L(a,this.clonePosition()))}else return this.error(k.INVALID_TAG,L(a,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Hi(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var a=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var r=this.tryParseUnquoted(t,n);if(r){i+=r;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var p=L(a,this.clonePosition());return{val:{type:I.literal,value:i,location:p},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Fi(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var a=this.char();if(a===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(a);this.bump()}return Nt.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var a=this.char();return a===60||a===123||a===35&&(n==="plural"||n==="selectordinal")||a===125&&t>0?null:(this.bump(),Nt(a))},e.prototype.parseArgument=function(t,n){var a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,L(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(k.EMPTY_ARGUMENT,L(a,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(k.MALFORMED_ARGUMENT,L(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,L(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:I.argument,value:i,location:L(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,L(a,this.clonePosition())):this.parseArgumentOptions(t,n,i,a);default:return this.error(k.MALFORMED_ARGUMENT,L(a,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),a=Dt(this.message,n),i=n+a.length;this.bumpTo(i);var o=this.clonePosition(),r=L(t,o);return{value:a,location:r}},e.prototype.parseArgumentOptions=function(t,n,a,i){var o,r=this.clonePosition(),s=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(s){case"":return this.error(k.EXPECT_ARGUMENT_TYPE,L(r,p));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var d=Mi(m.val);if(d.length===0)return this.error(k.EXPECT_ARGUMENT_STYLE,L(this.clonePosition(),this.clonePosition()));var h=L(l,this.clonePosition());c={style:d,styleLocation:h}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var y=L(i,this.clonePosition());if(c&&sa(c?.style,"::",0)){var f=ji(c.style.slice(2));if(s==="number"){var m=this.parseNumberSkeletonFromString(f,c.styleLocation);return m.err?m:{val:{type:I.number,value:a,location:y,style:m.val},err:null}}else{if(f.length===0)return this.error(k.EXPECT_DATE_TIME_SKELETON,y);var _=f;this.locale&&(_=oa(f,this.locale));var d={type:pe.dateTime,pattern:_,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Zn(_):{}},A=s==="date"?I.date:I.time;return{val:{type:A,value:a,location:y,style:d},err:null}}}return{val:{type:s==="number"?I.number:s==="date"?I.date:I.time,value:a,location:y,style:(o=c?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var P=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(k.EXPECT_SELECT_ARGUMENT_OPTIONS,L(P,ye({},P)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),T=0;if(s!=="select"&&S.value==="offset"){if(!this.bumpIf(":"))return this.error(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),S=this.parseIdentifierIfPossible(),T=m.val}var b=this.tryParsePluralOrSelectOptions(t,s,n,S);if(b.err)return b;var g=this.tryParseArgumentClose(i);if(g.err)return g;var C=L(i,this.clonePosition());return s==="select"?{val:{type:I.select,value:a,options:la(b.val),location:C},err:null}:{val:{type:I.plural,value:a,options:la(b.val),offset:T,pluralType:s==="plural"?"cardinal":"ordinal",location:C},err:null}}default:return this.error(k.INVALID_ARGUMENT_TYPE,L(r,p))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,L(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var a=this.char();switch(a){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(k.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,L(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var a=[];try{a=ea(t)}catch{return this.error(k.INVALID_NUMBER_SKELETON,n)}return{val:{type:pe.number,tokens:a,location:n,parsedOptions:this.shouldParseSkeletons?ia(a):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,a,i){for(var o,r=!1,s=[],p=new Set,c=i.value,l=i.location;;){if(c.length===0){var m=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_SELECTOR,k.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=L(m,this.clonePosition()),c=this.message.slice(m.offset,this.offset())}else break}if(p.has(c))return this.error(n==="select"?k.DUPLICATE_SELECT_ARGUMENT_SELECTOR:k.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c==="other"&&(r=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?k.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:k.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,L(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,n,a);if(g.err)return g;var y=this.tryParseArgumentClose(h);if(y.err)return y;s.push([c,{value:g.val,location:L(h,this.clonePosition())}]),p.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,l=o.location}return s.length===0?this.error(n==="select"?k.EXPECT_SELECT_ARGUMENT_SELECTOR:k.EXPECT_PLURAL_ARGUMENT_SELECTOR,L(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(k.MISSING_OTHER_CLAUSE,L(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var a=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(a=-1);for(var o=!1,r=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,r=r*10+(s-48),this.bump();else break}var p=L(i,this.clonePosition());return o?(r*=a,zi(r)?{val:r,err:null}:this.error(n,p)):this.error(t,p)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=pa(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(sa(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),a=this.message.indexOf(t,n);return a>=0?(this.bumpTo(a),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&da(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),a=this.message.charCodeAt(n+(t>=65536?2:1));return a??null},e}();function zt(e){return e>=97&&e<=122||e>=65&&e<=90}function Fi(e){return zt(e)||e===47}function Hi(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function da(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Bi(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function jt(e){e.forEach(function(t){if(delete t.location,ot(t)||rt(t))for(var n in t.options)delete t.options[n].location,jt(t.options[n].value);else nt(t)&&lt(t.style)||(at(t)||it(t))&&Te(t.style)?delete t.style.location:st(t)&&jt(t.children)})}function ma(e,t){t===void 0&&(t={}),t=ye({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ca(e,t).parse();if(n.err){var a=SyntaxError(k[n.err.kind]);throw a.location=n.err.location,a.originalMessage=n.err.message,a}return t?.captureLocation||jt(n.val),n.val}function pt(e,t){var n=t&&t.cache?t.cache:Ji,a=t&&t.serializer?t.serializer:$i,i=t&&t.strategy?t.strategy:Gi;return i(e,{cache:n,serializer:a})}function Oi(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ha(e,t,n,a){var i=Oi(a)?a:n(a),o=t.get(i);return typeof o>"u"&&(o=e.call(this,a),t.set(i,o)),o}function ga(e,t,n){var a=Array.prototype.slice.call(arguments,3),i=n(a),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,a),t.set(i,o)),o}function Mt(e,t,n,a,i){return n.bind(t,e,a,i)}function Gi(e,t){var n=e.length===1?ha:ga;return Mt(e,this,n,t.cache.create(),t.serializer)}function Vi(e,t){return Mt(e,this,ga,t.cache.create(),t.serializer)}function Wi(e,t){return Mt(e,this,ha,t.cache.create(),t.serializer)}var $i=function(){return JSON.stringify(arguments)};function Ft(){this.cache=Object.create(null)}Ft.prototype.get=function(e){return this.cache[e]};Ft.prototype.set=function(e,t){this.cache[e]=t};var Ji={create:function(){return new Ft}},ut={variadic:Vi,monadic:Wi};var ue;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ue||(ue={}));var Re=function(e){Ue(t,e);function t(n,a,i){var o=e.call(this,n)||this;return o.code=a,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error);var Ht=function(e){Ue(t,e);function t(n,a,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(a,'". Options are "').concat(Object.keys(i).join('", "'),'"'),ue.INVALID_VALUE,o)||this}return t}(Re);var fa=function(e){Ue(t,e);function t(n,a,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(a),ue.INVALID_VALUE,i)||this}return t}(Re);var va=function(e){Ue(t,e);function t(n,a){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(a,'"'),ue.MISSING_VALUE,a)||this}return t}(Re);var V;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(V||(V={}));function qi(e){return e.length<2?e:e.reduce(function(t,n){var a=t[t.length-1];return!a||a.type!==V.literal||n.type!==V.literal?t.push(n):a.value+=n.value,t},[])}function Zi(e){return typeof e=="function"}function Ne(e,t,n,a,i,o,r){if(e.length===1&&Lt(e[0]))return[{type:V.literal,value:e[0].value}];for(var s=[],p=0,c=e;p<c.length;p++){var l=c[p];if(Lt(l)){s.push({type:V.literal,value:l.value});continue}if(qn(l)){typeof o=="number"&&s.push({type:V.literal,value:n.getNumberFormat(t).format(o)});continue}var m=l.value;if(!(i&&m in i))throw new va(m,r);var d=i[m];if(Jn(l)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),s.push({type:typeof d=="string"?V.literal:V.object,value:d});continue}if(at(l)){var h=typeof l.style=="string"?a.date[l.style]:Te(l.style)?l.style.parsedOptions:void 0;s.push({type:V.literal,value:n.getDateTimeFormat(t,h).format(d)});continue}if(it(l)){var h=typeof l.style=="string"?a.time[l.style]:Te(l.style)?l.style.parsedOptions:a.time.medium;s.push({type:V.literal,value:n.getDateTimeFormat(t,h).format(d)});continue}if(nt(l)){var h=typeof l.style=="string"?a.number[l.style]:lt(l.style)?l.style.parsedOptions:void 0;h&&h.scale&&(d=d*(h.scale||1)),s.push({type:V.literal,value:n.getNumberFormat(t,h).format(d)});continue}if(st(l)){var g=l.children,y=l.value,f=i[y];if(!Zi(f))throw new fa(y,"function",r);var _=Ne(g,t,n,a,i,o),A=f(_.map(function(T){return T.value}));Array.isArray(A)||(A=[A]),s.push.apply(s,A.map(function(T){return{type:typeof T=="string"?V.literal:V.object,value:T}}))}if(ot(l)){var P=l.options[d]||l.options.other;if(!P)throw new Ht(l.value,d,Object.keys(l.options),r);s.push.apply(s,Ne(P.value,t,n,a,i));continue}if(rt(l)){var P=l.options["=".concat(d)];if(!P){if(!Intl.PluralRules)throw new Re(`Intl.PluralRules is not available in this environment.
1
+ "use strict";(()=>{var Ge,w,ln,ai,Ae,pn,an,un,He={},cn=[],ii=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ae(e,t){for(var n in t)e[n]=t[n];return e}function dn(e){var t=e.parentNode;t&&t.removeChild(e)}function wt(e,t,n){var a,i,o,r={};for(o in t)o=="key"?a=t[o]:o=="ref"?i=t[o]:r[o]=t[o];if(arguments.length>2&&(r.children=arguments.length>3?Ge.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)r[o]===void 0&&(r[o]=e.defaultProps[o]);return Me(e,r,a,i,null)}function Me(e,t,n,a,i){var o={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++ln};return i==null&&w.vnode!=null&&w.vnode(o),o}function H(e){return e.children}function Fe(e,t){this.props=e,this.context=t}function ge(e,t){if(t==null)return e.__?ge(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?ge(e):null}function mn(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return mn(e)}}function _t(e){(!e.__d&&(e.__d=!0)&&Ae.push(e)&&!Be.__r++||an!==w.debounceRendering)&&((an=w.debounceRendering)||pn)(Be)}function Be(){for(var e;Be.__r=Ae.length;)e=Ae.sort(function(t,n){return t.__v.__b-n.__v.__b}),Ae=[],e.some(function(t){var n,a,i,o,r,s;t.__d&&(r=(o=(n=t).__v).__e,(s=n.__P)&&(a=[],(i=ae({},o)).__v=o.__v+1,Ct(s,o,i,n.__n,s.ownerSVGElement!==void 0,o.__h!=null?[r]:null,a,r??ge(o),o.__h),vn(a,o),o.__e!=r&&mn(o)))})}function hn(e,t,n,a,i,o,r,s,p,c){var l,m,d,h,g,y,f,_=a&&a.__k||cn,A=_.length;for(n.__k=[],l=0;l<t.length;l++)if((h=n.__k[l]=(h=t[l])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?Me(null,h,null,null,h):Array.isArray(h)?Me(H,{children:h},null,null,null):h.__b>0?Me(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(d=_[l])===null||d&&h.key==d.key&&h.type===d.type)_[l]=void 0;else for(m=0;m<A;m++){if((d=_[m])&&h.key==d.key&&h.type===d.type){_[m]=void 0;break}d=null}Ct(e,h,d=d||He,i,o,r,s,p,c),g=h.__e,(m=h.ref)&&d.ref!=m&&(f||(f=[]),d.ref&&f.push(d.ref,null,h),f.push(m,h.__c||g,h)),g!=null?(y==null&&(y=g),typeof h.type=="function"&&h.__k===d.__k?h.__d=p=gn(h,p,e):p=fn(e,h,d,_,g,p),typeof n.type=="function"&&(n.__d=p)):p&&d.__e==p&&p.parentNode!=e&&(p=ge(d))}for(n.__e=y,l=A;l--;)_[l]!=null&&(typeof n.type=="function"&&_[l].__e!=null&&_[l].__e==n.__d&&(n.__d=ge(a,l+1)),yn(_[l],_[l]));if(f)for(l=0;l<f.length;l++)bn(f[l],f[++l],f[++l])}function gn(e,t,n){for(var a,i=e.__k,o=0;i&&o<i.length;o++)(a=i[o])&&(a.__=e,t=typeof a.type=="function"?gn(a,t,n):fn(n,a,a,i,a.__e,t));return t}function fn(e,t,n,a,i,o){var r,s,p;if(t.__d!==void 0)r=t.__d,t.__d=void 0;else if(n==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(i),r=null;else{for(s=o,p=0;(s=s.nextSibling)&&p<a.length;p+=2)if(s==i)break e;e.insertBefore(i,o),r=o}return r!==void 0?r:i.nextSibling}function oi(e,t,n,a,i){var o;for(o in n)o==="children"||o==="key"||o in t||Oe(e,o,null,n[o],a);for(o in t)i&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||Oe(e,o,t[o],n[o],a)}function on(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||ii.test(t)?n:n+"px"}function Oe(e,t,n,a,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof a=="string"&&(e.style.cssText=a=""),a)for(t in a)n&&t in n||on(e.style,t,"");if(n)for(t in n)a&&n[t]===a[t]||on(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?a||e.addEventListener(t,o?sn:rn,o):e.removeEventListener(t,o?sn:rn,o);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,n):e.removeAttribute(t))}}function rn(e){this.l[e.type+!1](w.event?w.event(e):e)}function sn(e){this.l[e.type+!0](w.event?w.event(e):e)}function Ct(e,t,n,a,i,o,r,s,p){var c,l,m,d,h,g,y,f,_,A,P,S=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(p=n.__h,s=t.__e=n.__e,t.__h=null,o=[s]),(c=w.__b)&&c(t);try{e:if(typeof S=="function"){if(f=t.props,_=(c=S.contextType)&&a[c.__c],A=c?_?_.props.value:c.__:a,n.__c?y=(l=t.__c=n.__c).__=l.__E:("prototype"in S&&S.prototype.render?t.__c=l=new S(f,A):(t.__c=l=new Fe(f,A),l.constructor=S,l.render=si),_&&_.sub(l),l.props=f,l.state||(l.state={}),l.context=A,l.__n=a,m=l.__d=!0,l.__h=[]),l.__s==null&&(l.__s=l.state),S.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=ae({},l.__s)),ae(l.__s,S.getDerivedStateFromProps(f,l.__s))),d=l.props,h=l.state,m)S.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(S.getDerivedStateFromProps==null&&f!==d&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(f,A),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(f,l.__s,A)===!1||t.__v===n.__v){l.props=f,l.state=l.__s,t.__v!==n.__v&&(l.__d=!1),l.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(T){T&&(T.__=t)}),l.__h.length&&r.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(f,l.__s,A),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(d,h,g)})}l.context=A,l.props=f,l.state=l.__s,(c=w.__r)&&c(t),l.__d=!1,l.__v=t,l.__P=e,c=l.render(l.props,l.state,l.context),l.state=l.__s,l.getChildContext!=null&&(a=ae(ae({},a),l.getChildContext())),m||l.getSnapshotBeforeUpdate==null||(g=l.getSnapshotBeforeUpdate(d,h)),P=c!=null&&c.type===H&&c.key==null?c.props.children:c,hn(e,Array.isArray(P)?P:[P],t,n,a,i,o,r,s,p),l.base=t.__e,t.__h=null,l.__h.length&&r.push(l),y&&(l.__E=l.__=null),l.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ri(n.__e,t,n,a,i,o,r,p);(c=w.diffed)&&c(t)}catch(T){t.__v=null,(p||o!=null)&&(t.__e=s,t.__h=!!p,o[o.indexOf(s)]=null),w.__e(T,t,n)}}function vn(e,t){w.__c&&w.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(a){a.call(n)})}catch(a){w.__e(a,n.__v)}})}function ri(e,t,n,a,i,o,r,s){var p,c,l,m=n.props,d=t.props,h=t.type,g=0;if(h==="svg"&&(i=!0),o!=null){for(;g<o.length;g++)if((p=o[g])&&"setAttribute"in p==!!h&&(h?p.localName===h:p.nodeType===3)){e=p,o[g]=null;break}}if(e==null){if(h===null)return document.createTextNode(d);e=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),o=null,s=!1}if(h===null)m===d||s&&e.data===d||(e.data=d);else{if(o=o&&Ge.call(e.childNodes),c=(m=n.props||He).dangerouslySetInnerHTML,l=d.dangerouslySetInnerHTML,!s){if(o!=null)for(m={},g=0;g<e.attributes.length;g++)m[e.attributes[g].name]=e.attributes[g].value;(l||c)&&(l&&(c&&l.__html==c.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(oi(e,d,m,i,s),l)t.__k=[];else if(g=t.props.children,hn(e,Array.isArray(g)?g:[g],t,n,a,i&&h!=="foreignObject",o,r,o?o[0]:n.__k&&ge(n,0),s),o!=null)for(g=o.length;g--;)o[g]!=null&&dn(o[g]);s||("value"in d&&(g=d.value)!==void 0&&(g!==e.value||h==="progress"&&!g||h==="option"&&g!==m.value)&&Oe(e,"value",g,m.value,!1),"checked"in d&&(g=d.checked)!==void 0&&g!==e.checked&&Oe(e,"checked",g,m.checked,!1))}return e}function bn(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(a){w.__e(a,n)}}function yn(e,t,n){var a,i;if(w.unmount&&w.unmount(e),(a=e.ref)&&(a.current&&a.current!==e.__e||bn(a,null,t)),(a=e.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(o){w.__e(o,t)}a.base=a.__P=null}if(a=e.__k)for(i=0;i<a.length;i++)a[i]&&yn(a[i],t,typeof e.type!="function");n||e.__e==null||dn(e.__e),e.__e=e.__d=void 0}function si(e,t,n){return this.constructor(e,n)}function _n(e,t,n){var a,i,o;w.__&&w.__(e,t),i=(a=typeof n=="function")?null:n&&n.__k||t.__k,o=[],Ct(t,e=(!a&&n||t).__k=wt(H,null,[e]),i||He,He,t.ownerSVGElement!==void 0,!a&&n?[n]:i?null:t.firstChild?Ge.call(t.childNodes):null,o,!a&&n?n:i?i.__e:t.firstChild,a),vn(o,e)}function Pe(e,t){var n={__c:t="__cC"+un++,__:e,Consumer:function(a,i){return a.children(i)},Provider:function(a){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(r){this.props.value!==r.value&&i.some(_t)},this.sub=function(r){i.push(r);var s=r.componentWillUnmount;r.componentWillUnmount=function(){i.splice(i.indexOf(r),1),s&&s.call(r)}}),a.children}};return n.Provider.__=n.Consumer.contextType=n}Ge=cn.slice,w={__e:function(e,t,n,a){for(var i,o,r;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),r=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,a||{}),r=i.__d),r)return i.__E=i}catch(s){e=s}throw e}},ln=0,ai=function(e){return e!=null&&e.constructor===void 0},Fe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ae({},this.state),typeof e=="function"&&(e=e(ae({},n),this.props)),e&&ae(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),_t(this))},Fe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_t(this))},Fe.prototype.render=H,Ae=[],pn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Be.__r=0,un=0;var fe,W,wn,We=0,En=[],Cn=w.__b,xn=w.__r,Sn=w.diffed,kn=w.__c,An=w.unmount;function Ee(e,t){w.__h&&w.__h(W,e,We||t),We=0;var n=W.__H||(W.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ie(e){return We=1,li(Ln,e)}function li(e,t,n){var a=Ee(fe++,2);return a.t=e,a.__c||(a.__=[n?n(t):Ln(void 0,t),function(i){var o=a.t(a.__[0],i);a.__[0]!==o&&(a.__=[o,a.__[1]],a.__c.setState({}))}],a.__c=W),a.__}function $e(e,t){var n=Ee(fe++,3);!w.__s&&St(n.__H,t)&&(n.__=e,n.__H=t,W.__H.__h.push(n))}function Je(e,t){var n=Ee(fe++,4);!w.__s&&St(n.__H,t)&&(n.__=e,n.__H=t,W.__h.push(n))}function qe(e){return We=5,ee(function(){return{current:e}},[])}function ee(e,t){var n=Ee(fe++,7);return St(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Le(e){var t=W.context[e.__c],n=Ee(fe++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(W)),t.props.value):e.__}function pi(){for(var e;e=En.shift();)if(e.__P)try{e.__H.__h.forEach(Ve),e.__H.__h.forEach(xt),e.__H.__h=[]}catch(t){e.__H.__h=[],w.__e(t,e.__v)}}w.__b=function(e){W=null,Cn&&Cn(e)},w.__r=function(e){xn&&xn(e),fe=0;var t=(W=e.__c).__H;t&&(t.__h.forEach(Ve),t.__h.forEach(xt),t.__h=[])},w.diffed=function(e){Sn&&Sn(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(En.push(t)!==1&&wn===w.requestAnimationFrame||((wn=w.requestAnimationFrame)||function(n){var a,i=function(){clearTimeout(o),Pn&&cancelAnimationFrame(a),setTimeout(n)},o=setTimeout(i,100);Pn&&(a=requestAnimationFrame(i))})(pi)),W=null},w.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ve),n.__h=n.__h.filter(function(a){return!a.__||xt(a)})}catch(a){t.some(function(i){i.__h&&(i.__h=[])}),t=[],w.__e(a,n.__v)}}),kn&&kn(e,t)},w.unmount=function(e){An&&An(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Ve(a)}catch(i){t=i}}),t&&w.__e(t,n.__v))};var Pn=typeof requestAnimationFrame=="function";function Ve(e){var t=W,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),W=t}function xt(e){var t=W;e.__c=e.__(),W=t}function St(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function Ln(e,t){return typeof t=="function"?t(e):t}var ui=.8999999999999999,ci=.5,di=.49999999999999994;function mi(e){let t=Math.sign(e);e=Math.abs(e);let n=.254829592,a=-.284496736,i=1.421413741,o=-1.453152027,r=1.061405429,p=1/(1+.3275911*e),c=p*(n+p*(a+p*(i+p*(o+p*r))));return t*(1-c*Math.exp(-e*e))}function Un({median:e,p10:t},n){if(e<=0)throw new Error("median must be greater than zero");if(t<=0)throw new Error("p10 must be greater than zero");if(t>=e)throw new Error("p10 must be less than the median");if(n<=0)return 1;let a=.9061938024368232,i=Math.max(Number.MIN_VALUE,n/e),o=Math.log(i),r=Math.max(Number.MIN_VALUE,t/e),s=-Math.log(r),p=o*a/s,c=(1-mi(p))/2,l;return n<=t?l=Math.max(.9,Math.min(1,c)):n<=e?l=Math.max(ci,Math.min(ui,c)):l=Math.max(0,Math.min(di,c)),l}var te="…",gi=" ",Tn=.9,fi={PASS:{label:"pass",minScore:Tn},AVERAGE:{label:"average",minScore:.5},FAIL:{label:"fail"},ERROR:{label:"error"}},vi=["com","co","gov","edu","ac","org","go","gob","or","net","in","ne","nic","gouv","web","spb","blog","jus","kiev","mil","wi","qc","ca","bel","on"],R=class e{static get RATINGS(){return fi}static get PASS_THRESHOLD(){return Tn}static get MS_DISPLAY_VALUE(){return`%10d${gi}ms`}static getFinalDisplayedUrl(t){if(t.finalDisplayedUrl)return t.finalDisplayedUrl;if(t.finalUrl)return t.finalUrl;throw new Error("Could not determine final displayed URL")}static getMainDocumentUrl(t){return t.mainDocumentUrl||t.finalUrl}static getFullPageScreenshot(t){return t.fullPageScreenshot?t.fullPageScreenshot:t.audits["full-page-screenshot"]?.details}static getEntityFromUrl(t,n){return n&&n.find(i=>i.origins.find(o=>t.startsWith(o)))||e.getPseudoRootDomain(t)}static splitMarkdownCodeSpans(t){let n=[],a=t.split(/`(.*?)`/g);for(let i=0;i<a.length;i++){let o=a[i];if(!o)continue;let r=i%2!==0;n.push({isCode:r,text:o})}return n}static splitMarkdownLink(t){let n=[],a=t.split(/\[([^\]]+?)\]\((https?:\/\/.*?)\)/g);for(;a.length;){let[i,o,r]=a.splice(0,3);i&&n.push({isLink:!1,text:i}),o&&r&&n.push({isLink:!0,text:o,linkHref:r})}return n}static truncate(t,n,a="…"){if(t.length<=n)return t;let o=new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t)[Symbol.iterator](),r=0;for(let s=0;s<=n-a.length;s++){let p=o.next();if(p.done)return t;r=p.value.index}for(let s=0;s<a.length;s++)if(o.next().done)return t;return t.slice(0,r)+a}static getURLDisplayName(t,n){n=n||{numPathParts:void 0,preserveQuery:void 0,preserveHost:void 0};let a=n.numPathParts!==void 0?n.numPathParts:2,i=n.preserveQuery!==void 0?n.preserveQuery:!0,o=n.preserveHost||!1,r;if(t.protocol==="about:"||t.protocol==="data:")r=t.href;else{r=t.pathname;let p=r.split("/").filter(c=>c.length);a&&p.length>a&&(r=te+p.slice(-1*a).join("/")),o&&(r=`${t.host}/${r.replace(/^\//,"")}`),i&&(r=`${r}${t.search}`)}let s=64;if(t.protocol!=="data:"&&(r=r.slice(0,200),r=r.replace(/([a-f0-9]{7})[a-f0-9]{13}[a-f0-9]*/g,`$1${te}`),r=r.replace(/([a-zA-Z0-9-_]{9})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9-_]{10,}/g,`$1${te}`),r=r.replace(/(\d{3})\d{6,}/g,`$1${te}`),r=r.replace(/\u2026+/g,te),r.length>s&&r.includes("?")&&(r=r.replace(/\?([^=]*)(=)?.*/,`?$1$2${te}`),r.length>s&&(r=r.replace(/\?.*/,`?${te}`)))),r.length>s){let p=r.lastIndexOf(".");p>=0?r=r.slice(0,s-1-(r.length-p))+`${te}${r.slice(p)}`:r=r.slice(0,s-1)+te}return r}static getChromeExtensionOrigin(t){let n=new URL(t);return n.protocol+"//"+n.host}static parseURL(t){let n=new URL(t);return{file:e.getURLDisplayName(n),hostname:n.hostname,origin:n.protocol==="chrome-extension:"?e.getChromeExtensionOrigin(t):n.origin}}static createOrReturnURL(t){return t instanceof URL?t:new URL(t)}static getPseudoTld(t){let n=t.split(".").slice(-2);return vi.includes(n[0])?`.${n.join(".")}`:`.${n[n.length-1]}`}static getPseudoRootDomain(t){let n=e.createOrReturnURL(t).hostname,i=e.getPseudoTld(n).split(".");return n.split(".").slice(-i.length).join(".")}static filterRelevantLines(t,n,a){if(n.length===0)return t.slice(0,a*2+1);let i=3,o=new Set;return n=n.sort((r,s)=>(r.lineNumber||0)-(s.lineNumber||0)),n.forEach(({lineNumber:r})=>{let s=r-a,p=r+a;for(;s<1;)s++,p++;o.has(s-i-1)&&(s-=i);for(let c=s;c<=p;c++){let l=c;o.add(l)}}),t.filter(r=>o.has(r.lineNumber))}static computeLogNormalScore(t,n){let a=Un(t,n);return a>.9&&(a+=.05*(a-.9)),Math.floor(a*100)/100}};var In=0,v=class e{static i18n=null;static strings={};static reportJson=null;static apply(t){e.strings={...Ze,...t.providedStrings},e.i18n=t.i18n,e.reportJson=t.reportJson}static getUniqueSuffix(){return In++}static resetUniqueSuffix(){In=0}};var Rn="data:image/jpeg;base64,";function Nn(e){e.configSettings.locale||(e.configSettings.locale="en"),e.configSettings.formFactor||(e.configSettings.formFactor=e.configSettings.emulatedFormFactor),e.finalDisplayedUrl=R.getFinalDisplayedUrl(e),e.mainDocumentUrl=R.getMainDocumentUrl(e);for(let a of Object.values(e.audits))if((a.scoreDisplayMode==="not_applicable"||a.scoreDisplayMode==="not-applicable")&&(a.scoreDisplayMode="notApplicable"),a.scoreDisplayMode==="informative"&&(a.score=1),a.details){if((a.details.type===void 0||a.details.type==="diagnostic")&&(a.details.type="debugdata"),a.details.type==="filmstrip")for(let i of a.details.items)i.data.startsWith(Rn)||(i.data=Rn+i.data);if(a.details.type==="table")for(let i of a.details.headings){let{itemType:o,text:r}=i;o!==void 0&&(i.valueType=o,delete i.itemType),r!==void 0&&(i.label=r,delete i.text);let s=i.subItemsHeading?.itemType;i.subItemsHeading&&s!==void 0&&(i.subItemsHeading.valueType=s,delete i.subItemsHeading.itemType)}if(a.id==="third-party-summary"&&(a.details.type==="opportunity"||a.details.type==="table")){let{headings:i,items:o}=a.details;if(i[0].valueType==="link"){i[0].valueType="text";for(let r of o)typeof r.entity=="object"&&r.entity.type==="link"&&(r.entity=r.entity.text);a.details.isEntityGrouped=!0}}}let[t]=e.lighthouseVersion.split(".").map(Number),n=e.categories.performance;if(n){if(t<9){e.categoryGroups||(e.categoryGroups={}),e.categoryGroups.hidden={title:""};for(let a of n.auditRefs)a.group?a.group==="load-opportunities"&&(a.group="diagnostics"):a.group="hidden"}else if(t<12)for(let a of n.auditRefs)a.group||(a.group="diagnostics")}if(t<12&&n){let a=new Map;for(let i of n.auditRefs){let o=i.relevantAudits;if(!(!o||!i.acronym))for(let r of o){let s=a.get(r)||[];s.push(i.acronym),a.set(r,s)}}for(let[i,o]of a){if(!o.length)continue;let r=e.audits[i];if(r&&!r.metricSavings){r.metricSavings={};for(let s of o)r.metricSavings[s]=0}}}if(e.environment||(e.environment={benchmarkIndex:0,networkUserAgent:e.userAgent,hostUserAgent:e.userAgent}),e.configSettings.screenEmulation||(e.configSettings.screenEmulation={width:-1,height:-1,deviceScaleFactor:-1,mobile:/mobile/i.test(e.environment.hostUserAgent),disabled:!1}),e.i18n||(e.i18n={}),e.audits["full-page-screenshot"]){let a=e.audits["full-page-screenshot"].details;a?e.fullPageScreenshot={screenshot:a.screenshot,nodes:a.nodes}:e.fullPageScreenshot=null,delete e.audits["full-page-screenshot"]}}var ne=R.RATINGS,E=class e{static prepareReportResult(t){let n=JSON.parse(JSON.stringify(t));Nn(n);for(let i of Object.values(n.audits))i.details&&(i.details.type==="opportunity"||i.details.type==="table")&&!i.details.isEntityGrouped&&n.entities&&e.classifyEntities(n.entities,i.details);if(typeof n.categories!="object")throw new Error("No categories provided.");let a=new Map;for(let i of Object.values(n.categories))i.auditRefs.forEach(o=>{o.acronym&&a.set(o.acronym,o)}),i.auditRefs.forEach(o=>{let r=n.audits[o.id];o.result=r;let s=Object.keys(o.result.metricSavings||{});if(s.length){o.relevantMetrics=[];for(let p of s){let c=a.get(p);c&&o.relevantMetrics.push(c)}}n.stackPacks&&n.stackPacks.forEach(p=>{p.descriptions[o.id]&&(o.stackPacks=o.stackPacks||[],o.stackPacks.push({title:p.title,iconDataURL:p.iconDataURL,description:p.descriptions[o.id]}))})});return n}static getUrlLocatorFn(t){let n=t.find(i=>i.valueType==="url")?.key;if(n&&typeof n=="string")return i=>{let o=i[n];if(typeof o=="string")return o};let a=t.find(i=>i.valueType==="source-location")?.key;if(a)return i=>{let o=i[a];if(typeof o=="object"&&o.type==="source-location")return o.url}}static classifyEntities(t,n){let{items:a,headings:i}=n;if(!a.length||a.some(r=>r.entity))return;let o=e.getUrlLocatorFn(i);if(o)for(let r of a){let s=o(r);if(!s)continue;let p="";try{p=R.parseURL(s).origin}catch{}if(!p)continue;let c=t.find(l=>l.origins.includes(p));c&&(r.entity=c.name)}}static getTableItemSortComparator(t){return(n,a)=>{for(let i of t){let o=n[i],r=a[i];if((typeof o!=typeof r||!["number","string"].includes(typeof o))&&console.warn(`Warning: Attempting to sort unsupported value type: ${i}.`),typeof o=="number"&&typeof r=="number"&&o!==r)return r-o;if(typeof o=="string"&&typeof r=="string"&&o!==r)return o.localeCompare(r)}return 0}}static getEmulationDescriptions(t){let n,a,i,o=t.throttling,r=v.i18n,s=v.strings;switch(t.throttlingMethod){case"provided":i=a=n=s.throttlingProvided;break;case"devtools":{let{cpuSlowdownMultiplier:d,requestLatencyMs:h}=o;n=`${r.formatNumber(d)}x slowdown (DevTools)`,a=`${r.formatMilliseconds(h)} HTTP RTT, ${r.formatKbps(o.downloadThroughputKbps)} down, ${r.formatKbps(o.uploadThroughputKbps)} up (DevTools)`,i=h===150*3.75&&o.downloadThroughputKbps===1.6*1024*.9&&o.uploadThroughputKbps===750*.9?s.runtimeSlow4g:s.runtimeCustom;break}case"simulate":{let{cpuSlowdownMultiplier:d,rttMs:h,throughputKbps:g}=o;n=`${r.formatNumber(d)}x slowdown (Simulated)`,a=`${r.formatMilliseconds(h)} TCP RTT, ${r.formatKbps(g)} throughput (Simulated)`,i=h===150&&g===1.6*1024?s.runtimeSlow4g:s.runtimeCustom;break}default:i=n=a=s.runtimeUnknown}let p=t.channel==="devtools"?!1:t.screenEmulation.disabled,c=t.channel==="devtools"?t.formFactor==="mobile":t.screenEmulation.mobile,l=s.runtimeMobileEmulation;p?l=s.runtimeNoEmulation:c||(l=s.runtimeDesktopEmulation);let m=p?void 0:`${t.screenEmulation.width}x${t.screenEmulation.height}, DPR ${t.screenEmulation.deviceScaleFactor}`;return{deviceEmulation:l,screenEmulation:m,cpuThrottling:n,networkThrottling:a,summary:i}}static showAsPassed(t){switch(t.scoreDisplayMode){case"manual":case"notApplicable":return!0;case"error":case"informative":return!1;case"numeric":case"binary":default:return Number(t.score)>=ne.PASS.minScore}}static calculateRating(t,n){if(n==="manual"||n==="notApplicable")return ne.PASS.label;if(n==="error")return ne.ERROR.label;if(t===null)return ne.FAIL.label;let a=ne.FAIL.label;return t>=ne.PASS.minScore?a=ne.PASS.label:t>=ne.AVERAGE.minScore&&(a=ne.AVERAGE.label),a}static calculateCategoryFraction(t){let n=0,a=0,i=0,o=0;for(let r of t.auditRefs){let s=e.showAsPassed(r.result);if(!(r.group==="hidden"||r.result.scoreDisplayMode==="manual"||r.result.scoreDisplayMode==="notApplicable")){if(r.result.scoreDisplayMode==="informative"){s||++i;continue}++n,o+=r.weight,s&&a++}}return{numPassed:a,numPassableAudits:n,numInformative:i,totalWeight:o}}static isPluginCategory(t){return t.startsWith("lighthouse-plugin-")}static shouldDisplayAsFraction(t){return t==="timespan"||t==="snapshot"}},Ze={varianceDisclaimer:"Values are estimated and may vary. The [performance score is calculated](https://developer.chrome.com/docs/lighthouse/performance/performance-scoring/) directly from these metrics.",calculatorLink:"See calculator.",showRelevantAudits:"Show audits relevant to:",opportunityResourceColumnLabel:"Opportunity",opportunitySavingsColumnLabel:"Estimated Savings",errorMissingAuditInfo:"Report error: no audit information",errorLabel:"Error!",warningHeader:"Warnings: ",warningAuditsGroupTitle:"Passed audits but with warnings",passedAuditsGroupTitle:"Passed audits",notApplicableAuditsGroupTitle:"Not applicable",manualAuditsGroupTitle:"Additional items to manually check",toplevelWarningsMessage:"There were issues affecting this run of Lighthouse:",crcInitialNavigation:"Initial Navigation",crcLongestDurationLabel:"Maximum critical path latency:",snippetExpandButtonLabel:"Expand snippet",snippetCollapseButtonLabel:"Collapse snippet",lsPerformanceCategoryDescription:"[Lighthouse](https://developers.google.com/web/tools/lighthouse/) analysis of the current page on an emulated mobile network. Values are estimated and may vary.",labDataTitle:"Lab Data",thirdPartyResourcesLabel:"Show 3rd-party resources",viewTreemapLabel:"View Treemap",viewTraceLabel:"View Trace",dropdownPrintSummary:"Print Summary",dropdownPrintExpanded:"Print Expanded",dropdownCopyJSON:"Copy JSON",dropdownSaveHTML:"Save as HTML",dropdownSaveJSON:"Save as JSON",dropdownViewer:"Open in Viewer",dropdownSaveGist:"Save as Gist",dropdownDarkTheme:"Toggle Dark Theme",dropdownViewUnthrottledTrace:"View Unthrottled Trace",runtimeSettingsDevice:"Device",runtimeSettingsNetworkThrottling:"Network throttling",runtimeSettingsCPUThrottling:"CPU throttling",runtimeSettingsUANetwork:"User agent (network)",runtimeSettingsBenchmark:"Unthrottled CPU/Memory Power",runtimeSettingsAxeVersion:"Axe version",runtimeSettingsScreenEmulation:"Screen emulation",footerIssue:"File an issue",runtimeNoEmulation:"No emulation",runtimeMobileEmulation:"Emulated Moto G Power",runtimeDesktopEmulation:"Emulated Desktop",runtimeUnknown:"Unknown",runtimeSingleLoad:"Single page session",runtimeAnalysisWindow:"Initial page load",runtimeAnalysisWindowTimespan:"User interactions timespan",runtimeAnalysisWindowSnapshot:"Point-in-time snapshot",runtimeSingleLoadTooltip:"This data is taken from a single page session, as opposed to field data summarizing many sessions.",throttlingProvided:"Provided by environment",show:"Show",hide:"Hide",expandView:"Expand view",collapseView:"Collapse view",runtimeSlow4g:"Slow 4G throttling",runtimeCustom:"Custom throttling",firstPartyChipLabel:"1st party",openInANewTabTooltip:"Open in a new tab",unattributable:"Unattributable",pwaRemovalMessage:"As per [Chrome’s updated Installability Criteria](https://developer.chrome.com/blog/update-install-criteria), Lighthouse will be deprecating the PWA category in a future release. Please refer to the [updated PWA documentation](https://developer.chrome.com/docs/devtools/progressive-web-apps/) for future PWA testing."};var bi=0;function u(e,t,n,a,i){var o,r,s={};for(r in t)r=="ref"?o=t[r]:s[r]=t[r];var p={type:e,props:s,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--bi,__source:i,__self:a};if(typeof e=="function"&&(o=e.defaultProps))for(r in o)s[r]===void 0&&(s[r]=o[r]);return w.vnode&&w.vnode(p),p}var Dn=()=>u("svg",{width:"14",viewBox:"0 0 18 16",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 2C0 1.17 0.67 0.5 1.5 0.5C2.33 0.5 3 1.17 3 2C3 2.83 2.33 3.5 1.5 3.5C0.67 3.5 0 2.83 0 2ZM0 8C0 7.17 0.67 6.5 1.5 6.5C2.33 6.5 3 7.17 3 8C3 8.83 2.33 9.5 1.5 9.5C0.67 9.5 0 8.83 0 8ZM1.5 12.5C0.67 12.5 0 13.18 0 14C0 14.82 0.68 15.5 1.5 15.5C2.32 15.5 3 14.82 3 14C3 13.18 2.33 12.5 1.5 12.5ZM18 15H5V13H18V15ZM5 9H18V7H5V9ZM5 3V1H18V3H5Z",fill:"currentColor"})}),Ke=()=>u("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a navigation report",children:u("circle",{cx:"8",cy:"8",r:"7",fill:"none",stroke:"currentColor","stroke-width":"2"})}),Xe=()=>u("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a timespan report",children:[u("circle",{cx:"8",cy:"8",r:"7",fill:"none",stroke:"currentColor","stroke-width":"2"}),u("path",{d:"m 8,4 v 4 l 4,1.9999998",stroke:"currentColor","stroke-width":"1.5"})]}),Ye=()=>u("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img","aria-label":"Icon representing a snapshot report",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M 12.2038,12.2812 C 11.1212,13.3443 9.6372,14 8,14 7.81038,14 7.62281,13.9912 7.43768,13.974 L 10.3094,9 Z M 12.8925,11.4741 10.0207,6.5 H 13.811 C 13.9344,6.97943 14,7.48205 14,8 c 0,1.2947 -0.4101,2.4937 -1.1075,3.4741 z M 13.456,5.5 H 7.71135 L 9.6065,2.21749 C 11.3203,2.69259 12.7258,3.90911 13.456,5.5 Z M 8.5624,2.02601 C 8.3772,2.0088 8.1896,2 8,2 6.36282,2 4.8788,2.65572 3.79622,3.71885 L 5.69061,7.00002 Z M 3.10749,4.52594 C 2.4101,5.5063 2,6.70526 2,8 2,8.5179 2.06563,9.0206 2.18903,9.5 H 5.97927 Z M 2.54404,10.5 c 0.73017,1.5909 2.1357,2.8074 3.84949,3.2825 L 8.2887,10.5 Z M 16,8 c 0,4.4183 -3.5817,8 -8,8 C 3.58172,16 0,12.4183 0,8 0,3.58172 3.58172,0 8,0 c 4.4183,0 8,3.58172 8,8 z",fill:"currentColor"})}),zn=()=>u("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",role:"img","aria-label":"Icon representing a close action",children:[u("path",{d:"M0 0h24v24H0V0z",fill:"none"}),u("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})]}),jn=()=>u("svg",{width:"15",height:"12",viewBox:"0 0 15 12",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.33317 2.00008H13.9998V0.666748H3.33317C2.59984 0.666748 1.99984 1.26675 1.99984 2.00008V9.33341H0.666504V11.3334H7.99984V9.33341H3.33317V2.00008ZM13.9998 3.33341H9.99984C9.63317 3.33341 9.33317 3.63341 9.33317 4.00008V10.6667C9.33317 11.0334 9.63317 11.3334 9.99984 11.3334H13.9998C14.3665 11.3334 14.6665 11.0334 14.6665 10.6667V4.00008C14.6665 3.63341 14.3665 3.33341 13.9998 3.33341ZM10.6665 9.33341H13.3332V4.66675H10.6665V9.33341Z",fill:"currentColor"})}),Mn=()=>u("svg",{width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.666687 3.26663L2.00002 4.59997C3.92002 2.67997 6.52669 1.87997 9.02002 2.18663L9.81335 0.399966C6.59335 -0.173367 3.16002 0.779966 0.666687 3.26663ZM10.6 0.599966C10.4867 0.599966 10.3867 0.659966 10.3267 0.753299L10.28 0.853299L6.82669 8.61996C6.72002 8.8133 6.65335 9.02663 6.65335 9.25996C6.65335 9.99996 7.25335 10.6 7.99335 10.6C8.63335 10.6 9.17335 10.1466 9.30002 9.53996L9.30669 9.51997L10.9334 0.933299C10.9334 0.746633 10.7867 0.599966 10.6 0.599966ZM15.3334 3.26663L14 4.59997C13.1867 3.78663 12.2534 3.17997 11.2534 2.76663L11.6067 0.886633C12.9667 1.38663 14.24 2.1733 15.3334 3.26663ZM11.3334 7.26663L12.6667 5.9333C12.1334 5.39997 11.5334 4.98663 10.8934 4.6733L10.5267 6.61997C10.8067 6.79997 11.08 7.0133 11.3334 7.26663ZM4.66669 7.26663L3.33335 5.9333C4.67335 4.5933 6.45335 3.95997 8.20669 4.0133L7.35335 5.9333C6.37335 6.0733 5.42002 6.5133 4.66669 7.26663Z",fill:"currentColor"})}),Fn=()=>u("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",role:"img",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5 7.16667V5.5H13.8333V3.83333C13.8333 2.91667 13.0833 2.16667 12.1667 2.16667H10.5V0.5H8.83333V2.16667H7.16667V0.5H5.5V2.16667H3.83333C2.91667 2.16667 2.16667 2.91667 2.16667 3.83333V5.5H0.5V7.16667H2.16667V8.83333H0.5V10.5H2.16667V12.1667C2.16667 13.0833 2.91667 13.8333 3.83333 13.8333H5.5V15.5H7.16667V13.8333H8.83333V15.5H10.5V13.8333H12.1667C13.0833 13.8333 13.8333 13.0833 13.8333 12.1667V10.5H15.5V8.83333H13.8333V7.16667H15.5ZM10.5 5.5H5.5V10.5H10.5V5.5ZM3.83333 12.1667H12.1667V3.83333H3.83333V12.1667Z",fill:"currentColor"})}),Hn=()=>u("svg",{viewBox:"0 0 18 12",width:"18",height:"12",role:"img",children:[u("rect",{width:"18",height:"2",fill:"currentColor"}),u("rect",{y:"5",width:"18",height:"2",fill:"currentColor"}),u("rect",{y:"10",width:"18",height:"2",fill:"currentColor"})]}),Bn=()=>u("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 7C13 10.3137 10.3137 13 7 13C3.68629 13 1 10.3137 1 7C1 3.68629 3.68629 1 7 1C10.3137 1 13 3.68629 13 7ZM14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0C10.866 0 14 3.13401 14 7ZM7.66658 11H6.33325V9.66667H7.66658V11ZM4.33325 5.66667C4.33325 4.19333 5.52659 3 6.99992 3C8.47325 3 9.66658 4.19333 9.66658 5.66667C9.66658 6.52194 9.1399 6.98221 8.62709 7.43036C8.1406 7.85551 7.66658 8.26975 7.66658 9H6.33325C6.33325 7.78582 6.96133 7.30439 7.51355 6.88112C7.94674 6.54907 8.33325 6.25281 8.33325 5.66667C8.33325 4.93333 7.73325 4.33333 6.99992 4.33333C6.26658 4.33333 5.66658 4.93333 5.66658 5.66667H4.33325Z",fill:"currentColor"})});var kt=Pe(void 0),At=Pe({});function On(e){return new URLSearchParams(location.hash.replace("#","?")).get(e)}function ve(...e){let t=[];for(let n of e){if(!n)continue;if(typeof n=="string"){t.push(n);continue}let a=Object.entries(n).filter(([i,o])=>o).map(([i])=>i);t.push(...a)}return t.join(" ")}function Gn(e){let{width:t,height:n}=e.configSettings.screenEmulation;return{width:t,height:n}}function Vn(e){let t=e.audits["screenshot-thumbnails"];return t&&t.details&&t.details.type==="filmstrip"&&t.details.items||void 0}function Qe(e,t){switch(e){case"navigation":return t.navigationDescription;case"timespan":return t.timespanDescription;case"snapshot":return t.snapshotDescription}}function J(){let e=Le(kt);if(!e)throw Error("useFlowResult must be called in the FlowResultContext");return e}function yi(...e){let[t,n]=ie(e.map(On));return $e(()=>{function a(){let i=e.map(On);i.every((o,r)=>o===t[r])||n(i)}return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[t]),t}function be(){let e=J(),[t,n]=yi("index","anchor");return ee(()=>{if(!t)return null;let a=Number(t);if(!Number.isFinite(a))return console.warn(`Invalid hash index: ${t}`),null;let i=e.steps[a];return i?{currentLhr:i.lhr,index:a,anchor:n}:(console.warn(`No flow step at index ${a}`),null)},[t,e,n])}function oe(e,t){let n=qe(null);return Je(()=>{if(!n.current)return;let a=e();return n.current.append(a),()=>{n.current?.contains(a)&&n.current.removeChild(a)}},t),n}function Wn(){return Le(At)}var _i=500,q=()=>u("div",{className:"Separator",role:"separator"}),Pt=({mode:e})=>u(H,{children:[e==="navigation"&&u(Ke,{}),e==="timespan"&&u(Xe,{}),e==="snapshot"&&u(Ye,{})]}),re=({mode:e})=>u("div",{className:"FlowSegment",children:[u("div",{className:"FlowSegment__top-line"}),e&&u(Pt,{mode:e}),u("div",{className:"FlowSegment__bottom-line"})]}),wi=({frames:e,width:t,height:n})=>{let[a,i]=ie(0),o=a%e.length;return $e(()=>{let r=setInterval(()=>i(s=>(s+1)%e.length),_i);return()=>clearInterval(r)},[e.length]),u("img",{className:"FlowStepThumbnail","data-testid":"FlowStepAnimatedThumbnail",src:e[o].data,style:{width:t,height:n},alt:"Animated screenshots of a page tested by Lighthouse"})},et=({lhr:e,width:t,height:n})=>{let a=Vn(e),i=Gn(e);if(t&&n===void 0?n=i.height*t/i.width:n&&t===void 0&&(t=i.width*n/i.height),!t||!n)return console.warn(new Error("FlowStepThumbnail requested without any dimensions").stack),u(H,{});let o;if(a?.length){if(o=a[a.length-1].data,e.gatherMode==="timespan")return u(wi,{frames:a,width:t,height:n})}else o=R.getFullPageScreenshot(e)?.screenshot.data;return u(H,{children:o&&u("img",{className:"FlowStepThumbnail",src:o,style:{width:t,height:n},alt:"Screenshot of a page tested by Lighthouse"})})};var Et=function(e,t){return Et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},Et(e,t)};function Ue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Et(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var X=function(){return X=Object.assign||function(t){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},X.apply(this,arguments)};function $n(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n}function tt(e,t,n){if(n||arguments.length===2)for(var a=0,i=t.length,o;a<i;a++)(o||!(a in t))&&(o||(o=Array.prototype.slice.call(t,0,a)),o[a]=t[a]);return e.concat(o||Array.prototype.slice.call(t))}var ye=function(){return ye=Object.assign||function(t){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ye.apply(this,arguments)};var k;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(k||(k={}));var I;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(I||(I={}));var pe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(pe||(pe={}));function Lt(e){return e.type===I.literal}function Jn(e){return e.type===I.argument}function nt(e){return e.type===I.number}function at(e){return e.type===I.date}function it(e){return e.type===I.time}function ot(e){return e.type===I.select}function rt(e){return e.type===I.plural}function qn(e){return e.type===I.pound}function st(e){return e.type===I.tag}function lt(e){return!!(e&&typeof e=="object"&&e.type===pe.number)}function Te(e){return!!(e&&typeof e=="object"&&e.type===pe.dateTime)}var Ut=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;var Ci=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Zn(e){var t={};return e.replace(Ci,function(n){var a=n.length;switch(n[0]){case"G":t.era=a===4?"long":a===5?"narrow":"short";break;case"y":t.year=a===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][a-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=a===4?"short":a===5?"narrow":"short";break;case"e":if(a<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][a-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][a-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][a-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][a-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][a-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][a-1];break;case"s":t.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=a<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var N=function(){return N=Object.assign||function(t){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},N.apply(this,arguments)};var Kn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ea(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Kn).filter(function(d){return d.length>0}),n=[],a=0,i=t;a<i.length;a++){var o=i[a],r=o.split("/");if(r.length===0)throw new Error("Invalid number skeleton");for(var s=r[0],p=r.slice(1),c=0,l=p;c<l.length;c++){var m=l[c];if(m.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:p})}return n}function xi(e){return e.replace(/^(.*?)-/,"")}var Xn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ta=/^(@+)?(\+|#+)?[rs]?$/g,Si=/(\*)(0+)|(#+)(0+)|(0+)/g,na=/^(0+)$/;function Yn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ta,function(n,a,i){return typeof i!="string"?(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length):i==="+"?t.minimumSignificantDigits=a.length:a[0]==="#"?t.maximumSignificantDigits=a.length:(t.minimumSignificantDigits=a.length,t.maximumSignificantDigits=a.length+(typeof i=="string"?i.length:0)),""}),t}function aa(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ki(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!na.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Qn(e){var t={},n=aa(e);return n||t}function ia(e){for(var t={},n=0,a=e;n<a.length;n++){var i=a[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=xi(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=N(N(N({},t),{notation:"scientific"}),i.options.reduce(function(p,c){return N(N({},p),Qn(c))},{}));continue;case"engineering":t=N(N(N({},t),{notation:"engineering"}),i.options.reduce(function(p,c){return N(N({},p),Qn(c))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Si,function(p,c,l,m,d,h){if(c)t.minimumIntegerDigits=l.length;else{if(m&&d)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(na.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Xn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Xn,function(p,c,l,m,d,h){return l==="*"?t.minimumFractionDigits=c.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:d&&h?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+h.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?t=N(N({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=N(N({},t),Yn(o)));continue}if(ta.test(i.stem)){t=N(N({},t),Yn(i.stem));continue}var r=aa(i.stem);r&&(t=N(N({},t),r));var s=ki(i.stem);s&&(t=N(N({},t),s))}return t}var Ie={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function oa(e,t){for(var n="",a=0;a<e.length;a++){var i=e.charAt(a);if(i==="j"){for(var o=0;a+1<e.length&&e.charAt(a+1)===i;)o++,a++;var r=1+(o&1),s=o<2?1:3+(o>>1),p="a",c=Ai(t);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=p;for(;r-- >0;)n=c+n}else i==="J"?n+="H":n+=i}return n}function Ai(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,a;n!=="root"&&(a=e.maximize().region);var i=Ie[a||""]||Ie[n||""]||Ie["".concat(n,"-001")]||Ie["001"];return i[0]}var Tt,Pi=new RegExp("^".concat(Ut.source,"*")),Ei=new RegExp("".concat(Ut.source,"*$"));function L(e,t){return{start:e,end:t}}var Li=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ui=!!String.fromCodePoint,Ti=!!Object.fromEntries,Ii=!!String.prototype.codePointAt,Ri=!!String.prototype.trimStart,Ni=!!String.prototype.trimEnd,Di=!!Number.isSafeInteger,zi=Di?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Rt=!0;try{ra=ua("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Rt=((Tt=ra.exec("a"))===null||Tt===void 0?void 0:Tt[0])==="a"}catch{Rt=!1}var ra,sa=Li?function(t,n,a){return t.startsWith(n,a)}:function(t,n,a){return t.slice(a,a+n.length)===n},Nt=Ui?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var a="",i=t.length,o=0,r;i>o;){if(r=t[o++],r>1114111)throw RangeError(r+" is not a valid code point");a+=r<65536?String.fromCharCode(r):String.fromCharCode(((r-=65536)>>10)+55296,r%1024+56320)}return a},la=Ti?Object.fromEntries:function(t){for(var n={},a=0,i=t;a<i.length;a++){var o=i[a],r=o[0],s=o[1];n[r]=s}return n},pa=Ii?function(t,n){return t.codePointAt(n)}:function(t,n){var a=t.length;if(!(n<0||n>=a)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===a||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},ji=Ri?function(t){return t.trimStart()}:function(t){return t.replace(Pi,"")},Mi=Ni?function(t){return t.trimEnd()}:function(t){return t.replace(Ei,"")};function ua(e,t){return new RegExp(e,t)}var Dt;Rt?(It=ua("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Dt=function(t,n){var a;It.lastIndex=n;var i=It.exec(t);return(a=i[1])!==null&&a!==void 0?a:""}):Dt=function(t,n){for(var a=[];;){var i=pa(t,n);if(i===void 0||da(i)||Bi(i))break;a.push(i),n+=i>=65536?2:1}return Nt.apply(void 0,a)};var It,ca=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,a){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var r=this.parseArgument(t,a);if(r.err)return r;i.push(r.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:I.pound,location:L(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(k.UNMATCHED_CLOSING_TAG,L(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&zt(this.peek()||0)){var r=this.parseTag(t,n);if(r.err)return r;i.push(r.val)}else{var r=this.parseLiteral(t,n);if(r.err)return r;i.push(r.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var a=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:I.literal,value:"<".concat(i,"/>"),location:L(a,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var r=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!zt(this.char()))return this.error(k.INVALID_TAG,L(s,this.clonePosition()));var p=this.clonePosition(),c=this.parseTagName();return i!==c?this.error(k.UNMATCHED_CLOSING_TAG,L(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:I.tag,value:i,children:r,location:L(a,this.clonePosition())},err:null}:this.error(k.INVALID_TAG,L(s,this.clonePosition())))}else return this.error(k.UNCLOSED_TAG,L(a,this.clonePosition()))}else return this.error(k.INVALID_TAG,L(a,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Hi(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var a=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var r=this.tryParseUnquoted(t,n);if(r){i+=r;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var p=L(a,this.clonePosition());return{val:{type:I.literal,value:i,location:p},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Fi(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var a=this.char();if(a===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(a);this.bump()}return Nt.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var a=this.char();return a===60||a===123||a===35&&(n==="plural"||n==="selectordinal")||a===125&&t>0?null:(this.bump(),Nt(a))},e.prototype.parseArgument=function(t,n){var a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,L(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(k.EMPTY_ARGUMENT,L(a,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(k.MALFORMED_ARGUMENT,L(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,L(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:I.argument,value:i,location:L(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,L(a,this.clonePosition())):this.parseArgumentOptions(t,n,i,a);default:return this.error(k.MALFORMED_ARGUMENT,L(a,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),a=Dt(this.message,n),i=n+a.length;this.bumpTo(i);var o=this.clonePosition(),r=L(t,o);return{value:a,location:r}},e.prototype.parseArgumentOptions=function(t,n,a,i){var o,r=this.clonePosition(),s=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(s){case"":return this.error(k.EXPECT_ARGUMENT_TYPE,L(r,p));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var d=Mi(m.val);if(d.length===0)return this.error(k.EXPECT_ARGUMENT_STYLE,L(this.clonePosition(),this.clonePosition()));var h=L(l,this.clonePosition());c={style:d,styleLocation:h}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var y=L(i,this.clonePosition());if(c&&sa(c?.style,"::",0)){var f=ji(c.style.slice(2));if(s==="number"){var m=this.parseNumberSkeletonFromString(f,c.styleLocation);return m.err?m:{val:{type:I.number,value:a,location:y,style:m.val},err:null}}else{if(f.length===0)return this.error(k.EXPECT_DATE_TIME_SKELETON,y);var _=f;this.locale&&(_=oa(f,this.locale));var d={type:pe.dateTime,pattern:_,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Zn(_):{}},A=s==="date"?I.date:I.time;return{val:{type:A,value:a,location:y,style:d},err:null}}}return{val:{type:s==="number"?I.number:s==="date"?I.date:I.time,value:a,location:y,style:(o=c?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var P=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(k.EXPECT_SELECT_ARGUMENT_OPTIONS,L(P,ye({},P)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),T=0;if(s!=="select"&&S.value==="offset"){if(!this.bumpIf(":"))return this.error(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),S=this.parseIdentifierIfPossible(),T=m.val}var b=this.tryParsePluralOrSelectOptions(t,s,n,S);if(b.err)return b;var g=this.tryParseArgumentClose(i);if(g.err)return g;var C=L(i,this.clonePosition());return s==="select"?{val:{type:I.select,value:a,options:la(b.val),location:C},err:null}:{val:{type:I.plural,value:a,options:la(b.val),offset:T,pluralType:s==="plural"?"cardinal":"ordinal",location:C},err:null}}default:return this.error(k.INVALID_ARGUMENT_TYPE,L(r,p))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,L(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var a=this.char();switch(a){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(k.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,L(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var a=[];try{a=ea(t)}catch{return this.error(k.INVALID_NUMBER_SKELETON,n)}return{val:{type:pe.number,tokens:a,location:n,parsedOptions:this.shouldParseSkeletons?ia(a):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,a,i){for(var o,r=!1,s=[],p=new Set,c=i.value,l=i.location;;){if(c.length===0){var m=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_SELECTOR,k.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=L(m,this.clonePosition()),c=this.message.slice(m.offset,this.offset())}else break}if(p.has(c))return this.error(n==="select"?k.DUPLICATE_SELECT_ARGUMENT_SELECTOR:k.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c==="other"&&(r=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?k.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:k.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,L(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,n,a);if(g.err)return g;var y=this.tryParseArgumentClose(h);if(y.err)return y;s.push([c,{value:g.val,location:L(h,this.clonePosition())}]),p.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,l=o.location}return s.length===0?this.error(n==="select"?k.EXPECT_SELECT_ARGUMENT_SELECTOR:k.EXPECT_PLURAL_ARGUMENT_SELECTOR,L(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(k.MISSING_OTHER_CLAUSE,L(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var a=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(a=-1);for(var o=!1,r=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,r=r*10+(s-48),this.bump();else break}var p=L(i,this.clonePosition());return o?(r*=a,zi(r)?{val:r,err:null}:this.error(n,p)):this.error(t,p)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=pa(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(sa(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),a=this.message.indexOf(t,n);return a>=0?(this.bumpTo(a),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&da(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),a=this.message.charCodeAt(n+(t>=65536?2:1));return a??null},e}();function zt(e){return e>=97&&e<=122||e>=65&&e<=90}function Fi(e){return zt(e)||e===47}function Hi(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function da(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Bi(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function jt(e){e.forEach(function(t){if(delete t.location,ot(t)||rt(t))for(var n in t.options)delete t.options[n].location,jt(t.options[n].value);else nt(t)&&lt(t.style)||(at(t)||it(t))&&Te(t.style)?delete t.style.location:st(t)&&jt(t.children)})}function ma(e,t){t===void 0&&(t={}),t=ye({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ca(e,t).parse();if(n.err){var a=SyntaxError(k[n.err.kind]);throw a.location=n.err.location,a.originalMessage=n.err.message,a}return t?.captureLocation||jt(n.val),n.val}function pt(e,t){var n=t&&t.cache?t.cache:Ji,a=t&&t.serializer?t.serializer:$i,i=t&&t.strategy?t.strategy:Gi;return i(e,{cache:n,serializer:a})}function Oi(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ha(e,t,n,a){var i=Oi(a)?a:n(a),o=t.get(i);return typeof o>"u"&&(o=e.call(this,a),t.set(i,o)),o}function ga(e,t,n){var a=Array.prototype.slice.call(arguments,3),i=n(a),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,a),t.set(i,o)),o}function Mt(e,t,n,a,i){return n.bind(t,e,a,i)}function Gi(e,t){var n=e.length===1?ha:ga;return Mt(e,this,n,t.cache.create(),t.serializer)}function Vi(e,t){return Mt(e,this,ga,t.cache.create(),t.serializer)}function Wi(e,t){return Mt(e,this,ha,t.cache.create(),t.serializer)}var $i=function(){return JSON.stringify(arguments)};function Ft(){this.cache=Object.create(null)}Ft.prototype.get=function(e){return this.cache[e]};Ft.prototype.set=function(e,t){this.cache[e]=t};var Ji={create:function(){return new Ft}},ut={variadic:Vi,monadic:Wi};var ue;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ue||(ue={}));var Re=function(e){Ue(t,e);function t(n,a,i){var o=e.call(this,n)||this;return o.code=a,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error);var Ht=function(e){Ue(t,e);function t(n,a,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(a,'". Options are "').concat(Object.keys(i).join('", "'),'"'),ue.INVALID_VALUE,o)||this}return t}(Re);var fa=function(e){Ue(t,e);function t(n,a,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(a),ue.INVALID_VALUE,i)||this}return t}(Re);var va=function(e){Ue(t,e);function t(n,a){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(a,'"'),ue.MISSING_VALUE,a)||this}return t}(Re);var V;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(V||(V={}));function qi(e){return e.length<2?e:e.reduce(function(t,n){var a=t[t.length-1];return!a||a.type!==V.literal||n.type!==V.literal?t.push(n):a.value+=n.value,t},[])}function Zi(e){return typeof e=="function"}function Ne(e,t,n,a,i,o,r){if(e.length===1&&Lt(e[0]))return[{type:V.literal,value:e[0].value}];for(var s=[],p=0,c=e;p<c.length;p++){var l=c[p];if(Lt(l)){s.push({type:V.literal,value:l.value});continue}if(qn(l)){typeof o=="number"&&s.push({type:V.literal,value:n.getNumberFormat(t).format(o)});continue}var m=l.value;if(!(i&&m in i))throw new va(m,r);var d=i[m];if(Jn(l)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),s.push({type:typeof d=="string"?V.literal:V.object,value:d});continue}if(at(l)){var h=typeof l.style=="string"?a.date[l.style]:Te(l.style)?l.style.parsedOptions:void 0;s.push({type:V.literal,value:n.getDateTimeFormat(t,h).format(d)});continue}if(it(l)){var h=typeof l.style=="string"?a.time[l.style]:Te(l.style)?l.style.parsedOptions:a.time.medium;s.push({type:V.literal,value:n.getDateTimeFormat(t,h).format(d)});continue}if(nt(l)){var h=typeof l.style=="string"?a.number[l.style]:lt(l.style)?l.style.parsedOptions:void 0;h&&h.scale&&(d=d*(h.scale||1)),s.push({type:V.literal,value:n.getNumberFormat(t,h).format(d)});continue}if(st(l)){var g=l.children,y=l.value,f=i[y];if(!Zi(f))throw new fa(y,"function",r);var _=Ne(g,t,n,a,i,o),A=f(_.map(function(T){return T.value}));Array.isArray(A)||(A=[A]),s.push.apply(s,A.map(function(T){return{type:typeof T=="string"?V.literal:V.object,value:T}}))}if(ot(l)){var P=l.options[d]||l.options.other;if(!P)throw new Ht(l.value,d,Object.keys(l.options),r);s.push.apply(s,Ne(P.value,t,n,a,i));continue}if(rt(l)){var P=l.options["=".concat(d)];if(!P){if(!Intl.PluralRules)throw new Re(`Intl.PluralRules is not available in this environment.
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
3
  `,ue.MISSING_INTL_API,r);var S=n.getPluralRules(t,{type:l.pluralType}).select(d-(l.offset||0));P=l.options[S]||l.options.other}if(!P)throw new Ht(l.value,d,Object.keys(l.options),r);s.push.apply(s,Ne(P.value,t,n,a,i,d-(l.offset||0)));continue}}return qi(s)}function Ki(e,t){return t?X(X(X({},e||{}),t||{}),Object.keys(e).reduce(function(n,a){return n[a]=X(X({},e[a]),t[a]||{}),n},{})):e}function Xi(e,t){return t?Object.keys(e).reduce(function(n,a){return n[a]=Ki(e[a],t[a]),n},X({},e)):e}function Bt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Yi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:pt(function(){for(var t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((t=Intl.NumberFormat).bind.apply(t,tt([void 0],n,!1)))},{cache:Bt(e.number),strategy:ut.variadic}),getDateTimeFormat:pt(function(){for(var t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((t=Intl.DateTimeFormat).bind.apply(t,tt([void 0],n,!1)))},{cache:Bt(e.dateTime),strategy:ut.variadic}),getPluralRules:pt(function(){for(var t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((t=Intl.PluralRules).bind.apply(t,tt([void 0],n,!1)))},{cache:Bt(e.pluralRules),strategy:ut.variadic})}}var ba=function(){function e(t,n,a,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var l=o.formatToParts(c);if(l.length===1)return l[0].value;var m=l.reduce(function(d,h){return!d.length||h.type!==V.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return m.length<=1?m[0]||"":m},this.formatToParts=function(c){return Ne(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var r=i||{},s=r.formatters,p=$n(r,["formatters"]);this.ast=e.__parse(t,X(X({},p),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Xi(e.formats,a),this.formatters=i&&i.formatters||Yi(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=ma,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var Ot=ba;var ct={literal:0,argument:1,number:2,date:3,time:4,select:5,plural:6,pound:7,tag:8};var Hs=["ar-XB.json","ar.json","bg.json","ca.json","cs.json","da.json","de.json","el.json","en-GB.json","en-US.json","en-XA.json","en-XL.json","es-419.json","es.json","fi.json","fil.json","fr.json","he.json","hi.json","hr.json","hu.json","id.json","it.json","ja.json","ko.json","lt.json","lv.json","nl.json","no.json","pl.json","pt-PT.json","pt.json","ro.json","ru.json","sk.json","sl.json","sr-Latn.json","sr.json","sv.json","ta.json","te.json","th.json","tr.json","uk.json","vi.json","zh-HK.json","zh-TW.json","zh.json"].filter(e=>e.endsWith(".json")&&!e.endsWith(".ctc.json")).map(e=>e.replace(".json","")).sort();var Qi={number:{bytes:{maximumFractionDigits:0},milliseconds:{maximumFractionDigits:0},seconds:{minimumFractionDigits:1,maximumFractionDigits:1},extendedPercent:{maximumFractionDigits:2,style:"percent"}}};function ya(e,t=new Map){for(let n of e)if(!(n.type===ct.literal||n.type===ct.pound)&&(t.set(n.value,n),n.type===ct.plural))for(let a of Object.values(n.options))ya(a.value,t);return t}function eo(e,t={},n){let a=ya(e.getAst()),i={};for(let[o,r]of a){if(!(o in t))throw new Error(`ICU Message "${n}" contains a value reference ("${o}") that wasn't provided`);let s=t[o];if(r.type!==ct.number){i[o]=s;continue}if(typeof s!="number")throw new Error(`ICU Message "${n}" contains a numeric reference ("${o}") but provided value was not a number`);r.style==="milliseconds"?i[o]=Math.round(s/10)*10:r.style==="seconds"&&o==="timeInMs"?i[o]=Math.round(s/100)/10:r.style==="bytes"?i[o]=s/1024:i[o]=s}for(let o of Object.keys(t))if(!(o in i)){if(o==="errorCode"){i.errorCode=t.errorCode;continue}throw new Error(`Provided value "${o}" does not match any placeholder in ICU message "${n}"`)}return i}function to(e){return e.replace(/'/g,"''").replace(/\\{/g,"'{").replace(/\\}/g,"'}")}function _a(e,t,n){e=to(e);let a=n==="en-XA"||n==="en-XL"?"de-DE":n,i=Ot.IntlMessageFormat||Ot,o=new i(e,a,Qi,{ignoreTag:!0}),r=eo(o,t,e),s=o.format(r);if(typeof s!="string")throw new Error("unexpected formatted result");return s}var Gt=" ";var ce=class{constructor(t){t==="en-XA"&&(t="de"),this._locale=t,this._cachedNumberFormatters=new Map}_formatNumberWithGranularity(t,n,a={}){if(n!==void 0){let r=-Math.log10(n);Number.isInteger(r)||(console.warn(`granularity of ${n} is invalid. Using 1 instead`),n=1),n<1&&(a={...a},a.minimumFractionDigits=a.maximumFractionDigits=Math.ceil(r)),t=Math.round(t/n)*n,Object.is(t,-0)&&(t=0)}else Math.abs(t)<5e-4&&(t=0);let i,o=[a.minimumFractionDigits,a.maximumFractionDigits,a.style,a.unit,a.unitDisplay,this._locale].join("");return i=this._cachedNumberFormatters.get(o),i||(i=new Intl.NumberFormat(this._locale,a),this._cachedNumberFormatters.set(o,i)),i.format(t).replace(" ",Gt)}formatNumber(t,n){return this._formatNumberWithGranularity(t,n)}formatInteger(t){return this._formatNumberWithGranularity(t,1)}formatPercent(t){return new Intl.NumberFormat(this._locale,{style:"percent"}).format(t)}formatBytesToKiB(t,n=void 0){return this._formatNumberWithGranularity(t/1024,n)+`${Gt}KiB`}formatBytesToMiB(t,n=void 0){return this._formatNumberWithGranularity(t/1048576,n)+`${Gt}MiB`}formatBytes(t,n=1){return this._formatNumberWithGranularity(t,n,{style:"unit",unit:"byte",unitDisplay:"long"})}formatBytesWithBestUnit(t,n=.1){return t>=1048576?this.formatBytesToMiB(t,n):t>=1024?this.formatBytesToKiB(t,n):this._formatNumberWithGranularity(t,n,{style:"unit",unit:"byte",unitDisplay:"narrow"})}formatKbps(t,n=void 0){return this._formatNumberWithGranularity(t,n,{style:"unit",unit:"kilobit-per-second",unitDisplay:"short"})}formatMilliseconds(t,n=void 0){return this._formatNumberWithGranularity(t,n,{style:"unit",unit:"millisecond",unitDisplay:"short"})}formatSeconds(t,n=void 0){return this._formatNumberWithGranularity(t/1e3,n,{style:"unit",unit:"second",unitDisplay:"narrow"})}formatDateTime(t){let n={month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"},a;try{a=new Intl.DateTimeFormat(this._locale,n)}catch{n.timeZone="UTC",a=new Intl.DateTimeFormat(this._locale,n)}return a.format(new Date(t))}formatDuration(t){let n=t/1e3;if(Math.round(n)===0)return"None";let a=[],i={day:60*60*24,hour:60*60,minute:60,second:1};return Object.keys(i).forEach(o=>{let r=i[o],s=Math.floor(n/r);if(s>0){n-=s*r;let p=this._formatNumberWithGranularity(s,1,{style:"unit",unit:o,unitDisplay:"narrow"});a.push(p)}}),a.join(" ")}};var Vt={navigationDescription:"Page load",timespanDescription:"User interactions",snapshotDescription:"Captured state of page",navigationLongDescription:"Navigation reports analyze a single page load, exactly like the original Lighthouse reports.",timespanLongDescription:"Timespan reports analyze an arbitrary period of time, typically containing user interactions.",snapshotLongDescription:"Snapshot reports analyze the page in a particular state, typically after user interactions.",navigationReport:"Navigation report",timespanReport:"Timespan report",snapshotReport:"Snapshot report",summary:"Summary",allReports:"All Reports",title:"Lighthouse User Flow Report",categories:"Categories",categoryPerformance:"Performance",categoryAccessibility:"Accessibility",categoryBestPractices:"Best Practices",categorySeo:"SEO",categoryProgressiveWebApp:"Progressive Web App",desktop:"Desktop",mobile:"Mobile",ratingPass:"Good",ratingAverage:"Average",ratingFail:"Poor",ratingError:"Error",navigationReportCount:`{numNavigation, plural,
4
4
  =1 {{numNavigation} navigation report}
@@ -2707,7 +2707,7 @@ details[open] .lh-clump-toggletext--hide { display: block;}
2707
2707
  display: none;
2708
2708
  }
2709
2709
  }
2710
- `),t.append(n);let a=e.createElement("div","lh-topbar"),i=e.createElementNS("http://www.w3.org/2000/svg","svg","lh-topbar__logo");i.setAttribute("role","img"),i.setAttribute("title","Lighthouse logo"),i.setAttribute("fill","none"),i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("viewBox","0 0 48 48");let o=e.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("d","m14 7 10-7 10 7v10h5v7h-5l5 24H9l5-24H9v-7h5V7Z"),o.setAttribute("fill","#F63");let r=e.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d","M31.561 24H14l-1.689 8.105L31.561 24ZM18.983 48H9l1.022-4.907L35.723 32.27l1.663 7.98L18.983 48Z"),r.setAttribute("fill","#FFA385");let s=e.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("fill","#FF3"),s.setAttribute("d","M20.5 10h7v7h-7z"),i.append(" ",o," ",r," ",s," ");let p=e.createElement("a","lh-topbar__url");p.setAttribute("href",""),p.setAttribute("target","_blank"),p.setAttribute("rel","noopener");let c=e.createElement("div","lh-tools"),l=e.createElement("div","lh-tools-locale lh-hidden"),m=e.createElement("button","lh-button lh-tool-locale__button");m.setAttribute("id","lh-button__swap-locales"),m.setAttribute("title","Show Language Picker"),m.setAttribute("aria-label","Toggle language picker"),m.setAttribute("aria-haspopup","menu"),m.setAttribute("aria-expanded","false"),m.setAttribute("aria-controls","lh-tools-locale__selector-wrapper");let d=e.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttribute("width","20px"),d.setAttribute("height","20px"),d.setAttribute("viewBox","0 0 24 24"),d.setAttribute("fill","currentColor");let h=e.createElementNS("http://www.w3.org/2000/svg","path");h.setAttribute("d","M0 0h24v24H0V0z"),h.setAttribute("fill","none");let g=e.createElementNS("http://www.w3.org/2000/svg","path");g.setAttribute("d","M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"),d.append(h,g),m.append(" ",d," ");let y=e.createElement("div","lh-tools-locale__selector-wrapper");y.setAttribute("id","lh-tools-locale__selector-wrapper"),y.setAttribute("role","menu"),y.setAttribute("aria-labelledby","lh-button__swap-locales"),y.setAttribute("aria-hidden","true"),y.append(" "," "),l.append(" ",m," ",y," ");let f=e.createElement("button","lh-tools__button");f.setAttribute("id","lh-tools-button"),f.setAttribute("title","Tools menu"),f.setAttribute("aria-label","Toggle report tools menu"),f.setAttribute("aria-haspopup","menu"),f.setAttribute("aria-expanded","false"),f.setAttribute("aria-controls","lh-tools-dropdown");let _=e.createElementNS("http://www.w3.org/2000/svg","svg");_.setAttribute("width","100%"),_.setAttribute("height","100%"),_.setAttribute("viewBox","0 0 24 24");let A=e.createElementNS("http://www.w3.org/2000/svg","path");A.setAttribute("d","M0 0h24v24H0z"),A.setAttribute("fill","none");let P=e.createElementNS("http://www.w3.org/2000/svg","path");P.setAttribute("d","M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"),_.append(" ",A," ",P," "),f.append(" ",_," ");let S=e.createElement("div","lh-tools__dropdown");S.setAttribute("id","lh-tools-dropdown"),S.setAttribute("role","menu"),S.setAttribute("aria-labelledby","lh-tools-button");let T=e.createElement("a","lh-report-icon lh-report-icon--print");T.setAttribute("role","menuitem"),T.setAttribute("tabindex","-1"),T.setAttribute("href","#"),T.setAttribute("data-i18n","dropdownPrintSummary"),T.setAttribute("data-action","print-summary");let b=e.createElement("a","lh-report-icon lh-report-icon--print");b.setAttribute("role","menuitem"),b.setAttribute("tabindex","-1"),b.setAttribute("href","#"),b.setAttribute("data-i18n","dropdownPrintExpanded"),b.setAttribute("data-action","print-expanded");let C=e.createElement("a","lh-report-icon lh-report-icon--copy");C.setAttribute("role","menuitem"),C.setAttribute("tabindex","-1"),C.setAttribute("href","#"),C.setAttribute("data-i18n","dropdownCopyJSON"),C.setAttribute("data-action","copy");let x=e.createElement("a","lh-report-icon lh-report-icon--download lh-hidden");x.setAttribute("role","menuitem"),x.setAttribute("tabindex","-1"),x.setAttribute("href","#"),x.setAttribute("data-i18n","dropdownSaveHTML"),x.setAttribute("data-action","save-html");let D=e.createElement("a","lh-report-icon lh-report-icon--download");D.setAttribute("role","menuitem"),D.setAttribute("tabindex","-1"),D.setAttribute("href","#"),D.setAttribute("data-i18n","dropdownSaveJSON"),D.setAttribute("data-action","save-json");let z=e.createElement("a","lh-report-icon lh-report-icon--open");z.setAttribute("role","menuitem"),z.setAttribute("tabindex","-1"),z.setAttribute("href","#"),z.setAttribute("data-i18n","dropdownViewer"),z.setAttribute("data-action","open-viewer");let j=e.createElement("a","lh-report-icon lh-report-icon--open");j.setAttribute("role","menuitem"),j.setAttribute("tabindex","-1"),j.setAttribute("href","#"),j.setAttribute("data-i18n","dropdownSaveGist"),j.setAttribute("data-action","save-gist");let F=e.createElement("a","lh-report-icon lh-report-icon--open lh-hidden");F.setAttribute("role","menuitem"),F.setAttribute("tabindex","-1"),F.setAttribute("href","#"),F.setAttribute("data-i18n","dropdownViewUnthrottledTrace"),F.setAttribute("data-action","view-unthrottled-trace");let Z=e.createElement("a","lh-report-icon lh-report-icon--dark");return Z.setAttribute("role","menuitem"),Z.setAttribute("tabindex","-1"),Z.setAttribute("href","#"),Z.setAttribute("data-i18n","dropdownDarkTheme"),Z.setAttribute("data-action","toggle-dark"),S.append(" ",T," ",b," ",C," "," ",x," ",D," ",z," ",j," "," ",F," ",Z," "),c.append(" ",l," ",f," ",S," "),a.append(" "," ",i," ",p," ",c," "),t.append(a),t}function To(e){let t=e.createFragment(),n=e.createElement("div","lh-warnings lh-warnings--toplevel"),a=e.createElement("p","lh-warnings__msg"),i=e.createElement("ul");return n.append(" ",a," ",i," "),t.append(n),t}function Pa(e,t){switch(t){case"3pFilter":return so(e);case"audit":return lo(e);case"categoryHeader":return po(e);case"chevron":return uo(e);case"clump":return co(e);case"crc":return mo(e);case"crcChain":return ho(e);case"elementScreenshot":return go(e);case"explodeyGauge":return fo(e);case"footer":return vo(e);case"fraction":return bo(e);case"gauge":return yo(e);case"gaugePwa":return _o(e);case"heading":return wo(e);case"metric":return Co(e);case"scorescale":return xo(e);case"scoresWrapper":return So(e);case"snippet":return ko(e);case"snippetContent":return Ao(e);case"snippetHeader":return Po(e);case"snippetLine":return Eo(e);case"styles":return Lo(e);case"topbar":return Uo(e);case"warningsToplevel":return To(e)}throw new Error("unexpected component: "+t)}var se=class{constructor(t,n){this._document=t,this._lighthouseChannel="unknown",this._componentCache=new Map,this.rootEl=n}createElement(t,n){let a=this._document.createElement(t);if(n)for(let i of n.split(/\s+/))i&&a.classList.add(i);return a}createElementNS(t,n,a){let i=this._document.createElementNS(t,n);if(a)for(let o of a.split(/\s+/))o&&i.classList.add(o);return i}createSVGElement(t,n){return this._document.createElementNS("http://www.w3.org/2000/svg",t,n)}createFragment(){return this._document.createDocumentFragment()}createTextNode(t){return this._document.createTextNode(t)}createChildOf(t,n,a){let i=this.createElement(n,a);return t.append(i),i}createComponent(t){let n=this._componentCache.get(t);if(n){let i=n.cloneNode(!0);return this.findAll("style",i).forEach(o=>o.remove()),i}return n=Pa(this,t),this._componentCache.set(t,n),n.cloneNode(!0)}clearComponentCache(){this._componentCache.clear()}convertMarkdownLinkSnippets(t,n={}){let a=this.createElement("span");for(let i of R.splitMarkdownLink(t)){let o=i.text.includes("`")?this.convertMarkdownCodeSnippets(i.text):i.text;if(!i.isLink){a.append(o);continue}let r=new URL(i.linkHref);(["https://developers.google.com","https://web.dev","https://developer.chrome.com"].includes(r.origin)||n.alwaysAppendUtmSource)&&(r.searchParams.set("utm_source","lighthouse"),r.searchParams.set("utm_medium",this._lighthouseChannel));let p=this.createElement("a");p.rel="noopener",p.target="_blank",p.append(o),this.safelySetHref(p,r.href),a.append(p)}return a}safelySetHref(t,n){if(n=n||"",n.startsWith("#")){t.href=n;return}let a=["https:","http:"],i;try{i=new URL(n)}catch{}i&&a.includes(i.protocol)&&(t.href=i.href)}safelySetBlobHref(t,n){if(n.type!=="text/html"&&n.type!=="application/json")throw new Error("Unsupported blob type");let a=URL.createObjectURL(n);t.href=a}convertMarkdownCodeSnippets(t){let n=this.createElement("span");for(let a of R.splitMarkdownCodeSpans(t))if(a.isCode){let i=this.createElement("code");i.textContent=a.text,n.append(i)}else n.append(this._document.createTextNode(a.text));return n}setLighthouseChannel(t){this._lighthouseChannel=t}document(){return this._document}isDevTools(){return!!this._document.querySelector(".lh-devtools")}find(t,n){let a=this.maybeFind(t,n);if(a===null)throw new Error(`query ${t} not found`);return a}maybeFind(t,n){return n.querySelector(t)}findAll(t,n){return Array.from(n.querySelectorAll(t))}fireEventOn(t,n=this._document,a){let i=new CustomEvent(t,a?{detail:a}:void 0);n.dispatchEvent(i)}saveFile(t,n){let a=this.createElement("a");a.download=n,this.safelySetBlobHref(a,t),this._document.body.append(a),a.click(),this._document.body.removeChild(a),setTimeout(()=>URL.revokeObjectURL(a.href),500)}};var Y=class{constructor(t,n){this.dom=t,this.detailsRenderer=n}get _clumpTitles(){return{warning:v.strings.warningAuditsGroupTitle,manual:v.strings.manualAuditsGroupTitle,passed:v.strings.passedAuditsGroupTitle,notApplicable:v.strings.notApplicableAuditsGroupTitle}}renderAudit(t){let n=v.strings,a=this.dom.createComponent("audit"),i=this.dom.find("div.lh-audit",a);i.id=t.result.id;let o=t.result.scoreDisplayMode;t.result.displayValue&&(this.dom.find(".lh-audit__display-text",i).textContent=t.result.displayValue);let r=this.dom.find(".lh-audit__title",i);r.append(this.dom.convertMarkdownCodeSnippets(t.result.title));let s=this.dom.find(".lh-audit__description",i);s.append(this.dom.convertMarkdownLinkSnippets(t.result.description));for(let d of t.relevantMetrics||[]){let h=this.dom.createChildOf(s,"span","lh-audit__adorn");h.title=`Relevant to ${d.result.title}`,h.textContent=d.acronym||d.id}t.stackPacks&&t.stackPacks.forEach(d=>{let h=this.dom.createElement("img","lh-audit__stackpack__img");h.src=d.iconDataURL,h.alt=d.title;let g=this.dom.convertMarkdownLinkSnippets(d.description,{alwaysAppendUtmSource:!0}),y=this.dom.createElement("div","lh-audit__stackpack");y.append(h,g),this.dom.find(".lh-audit__stackpacks",i).append(y)});let p=this.dom.find("details",i);if(t.result.details){let d=this.detailsRenderer.render(t.result.details);d&&(d.classList.add("lh-details"),p.append(d))}if(this.dom.find(".lh-chevron-container",i).append(this._createChevron()),this._setRatingClass(i,t.result.score,o),t.result.scoreDisplayMode==="error"){i.classList.add("lh-audit--error");let d=this.dom.find(".lh-audit__display-text",i);d.textContent=n.errorLabel,d.classList.add("lh-tooltip-boundary");let h=this.dom.createChildOf(d,"div","lh-tooltip lh-tooltip--error");h.textContent=t.result.errorMessage||n.errorMissingAuditInfo}else if(t.result.explanation){let d=this.dom.createChildOf(r,"div","lh-audit-explanation");d.textContent=t.result.explanation}let c=t.result.warnings;if(!c||c.length===0)return i;let l=this.dom.find("summary",p),m=this.dom.createChildOf(l,"div","lh-warnings");if(this.dom.createChildOf(m,"span").textContent=n.warningHeader,c.length===1)m.append(this.dom.createTextNode(c.join("")));else{let d=this.dom.createChildOf(m,"ul");for(let h of c){let g=this.dom.createChildOf(d,"li");g.textContent=h}}return i}injectFinalScreenshot(t,n,a){let i=n["final-screenshot"];if(!i||i.scoreDisplayMode==="error"||!i.details||i.details.type!=="screenshot")return null;let o=this.dom.createElement("img","lh-final-ss-image"),r=i.details.data;o.src=r,o.alt=i.title;let s=this.dom.find(".lh-category .lh-category-header",t),p=this.dom.createElement("div","lh-category-headercol"),c=this.dom.createElement("div","lh-category-headercol lh-category-headercol--separator"),l=this.dom.createElement("div","lh-category-headercol");p.append(...s.childNodes),p.append(a),l.append(o),s.append(p,c,l),s.classList.add("lh-category-header__finalscreenshot")}_createChevron(){let t=this.dom.createComponent("chevron");return this.dom.find("svg.lh-chevron",t)}_setRatingClass(t,n,a){let i=E.calculateRating(n,a);return t.classList.add(`lh-audit--${a.toLowerCase()}`),a!=="informative"&&t.classList.add(`lh-audit--${i}`),t}renderCategoryHeader(t,n,a){let i=this.dom.createComponent("categoryHeader"),o=this.dom.find(".lh-score__gauge",i),r=this.renderCategoryScore(t,n,a);if(o.append(r),t.description){let s=this.dom.convertMarkdownLinkSnippets(t.description);this.dom.find(".lh-category-header__description",i).append(s)}return i}renderAuditGroup(t){let n=this.dom.createElement("div","lh-audit-group"),a=this.dom.createElement("div","lh-audit-group__header");this.dom.createChildOf(a,"span","lh-audit-group__title").textContent=t.title,n.append(a);let i=null;return t.description&&(i=this.dom.convertMarkdownLinkSnippets(t.description),i.classList.add("lh-audit-group__description","lh-audit-group__footer"),n.append(i)),[n,i]}_renderGroupedAudits(t,n){let a=new Map,i="NotAGroup";a.set(i,[]);for(let r of t){let s=r.group||i;if(s==="hidden")continue;let p=a.get(s)||[];p.push(r),a.set(s,p)}let o=[];for(let[r,s]of a){if(r===i){for(let m of s)o.push(this.renderAudit(m));continue}let p=n[r],[c,l]=this.renderAuditGroup(p);for(let m of s)c.insertBefore(this.renderAudit(m),l);c.classList.add(`lh-audit-group--${r}`),o.push(c)}return o}renderUnexpandableClump(t,n){let a=this.dom.createElement("div");return this._renderGroupedAudits(t,n).forEach(o=>a.append(o)),a}renderClump(t,{auditRefsOrEls:n,description:a,openByDefault:i}){let o=this.dom.createComponent("clump"),r=this.dom.find(".lh-clump",o);i&&r.setAttribute("open","");let s=this.dom.find(".lh-audit-group__header",r),p=this._clumpTitles[t];this.dom.find(".lh-audit-group__title",s).textContent=p;let c=this.dom.find(".lh-audit-group__itemcount",r);c.textContent=`(${n.length})`;let l=n.map(d=>d instanceof HTMLElement?d:this.renderAudit(d));r.append(...l);let m=this.dom.find(".lh-audit-group",o);if(a){let d=this.dom.convertMarkdownLinkSnippets(a);d.classList.add("lh-audit-group__description","lh-audit-group__footer"),m.append(d)}return this.dom.find(".lh-clump-toggletext--show",m).textContent=v.strings.show,this.dom.find(".lh-clump-toggletext--hide",m).textContent=v.strings.hide,r.classList.add(`lh-clump--${t.toLowerCase()}`),m}renderCategoryScore(t,n,a){let i;if(a&&E.shouldDisplayAsFraction(a.gatherMode)?i=this.renderCategoryFraction(t):i=this.renderScoreGauge(t,n),a?.omitLabel&&this.dom.find(".lh-gauge__label,.lh-fraction__label",i).remove(),a?.onPageAnchorRendered){let o=this.dom.find("a",i);a.onPageAnchorRendered(o)}return i}renderScoreGauge(t,n){let a=this.dom.createComponent("gauge"),i=this.dom.find("a.lh-gauge__wrapper",a);E.isPluginCategory(t.id)&&i.classList.add("lh-gauge__wrapper--plugin");let o=Number(t.score),r=this.dom.find(".lh-gauge",a),s=this.dom.find("circle.lh-gauge-arc",r);s&&this._setGaugeArc(s,o);let p=Math.round(o*100),c=this.dom.find("div.lh-gauge__percentage",a);return c.textContent=p.toString(),t.score===null&&(c.classList.add("lh-gauge--error"),c.textContent="",c.title=v.strings.errorLabel),t.auditRefs.length===0||this.hasApplicableAudits(t)?i.classList.add(`lh-gauge__wrapper--${E.calculateRating(t.score)}`):(i.classList.add("lh-gauge__wrapper--not-applicable"),c.textContent="-",c.title=v.strings.notApplicableAuditsGroupTitle),this.dom.find(".lh-gauge__label",a).textContent=t.title,a}renderCategoryFraction(t){let n=this.dom.createComponent("fraction"),a=this.dom.find("a.lh-fraction__wrapper",n),{numPassed:i,numPassableAudits:o,totalWeight:r}=E.calculateCategoryFraction(t),s=i/o,p=this.dom.find(".lh-fraction__content",n),c=this.dom.createElement("span");c.textContent=`${i}/${o}`,p.append(c);let l=E.calculateRating(s);return r===0&&(l="null"),a.classList.add(`lh-fraction__wrapper--${l}`),this.dom.find(".lh-fraction__label",n).textContent=t.title,n}hasApplicableAudits(t){return t.auditRefs.some(n=>n.result.scoreDisplayMode!=="notApplicable")}_setGaugeArc(t,n){let a=2*Math.PI*Number(t.getAttribute("r")),i=Number(t.getAttribute("stroke-width")),o=.25*i/a;t.style.transform=`rotate(${-90+o*360}deg)`;let r=n*a-i/2;n===0&&(t.style.opacity="0"),n===1&&(r=a),t.style.strokeDasharray=`${Math.max(r,0)} ${a}`}_auditHasWarning(t){return!!t.result.warnings?.length}_getClumpIdForAuditRef(t){let n=t.result.scoreDisplayMode;return n==="manual"||n==="notApplicable"?n:E.showAsPassed(t.result)?this._auditHasWarning(t)?"warning":"passed":"failed"}render(t,n={},a){let i=this.dom.createElement("div","lh-category");i.id=t.id,i.append(this.renderCategoryHeader(t,n,a));let o=new Map;o.set("failed",[]),o.set("warning",[]),o.set("manual",[]),o.set("passed",[]),o.set("notApplicable",[]);for(let s of t.auditRefs){let p=this._getClumpIdForAuditRef(s),c=o.get(p);c.push(s),o.set(p,c)}for(let s of o.values())s.sort((p,c)=>c.weight-p.weight);let r=o.get("failed")?.length;for(let[s,p]of o){if(p.length===0)continue;if(s==="failed"){let d=this.renderUnexpandableClump(p,n);d.classList.add("lh-clump--failed"),i.append(d);continue}let c=s==="manual"?t.manualDescription:void 0,l=s==="warning"||s==="manual"&&r===0,m=this.renderClump(s,{auditRefsOrEls:p,description:c,openByDefault:l});i.append(m)}return i}};var ze=class{static initTree(t){let n=0,a=Object.keys(t);return a.length>0&&(n=t[a[0]].request.startTime),{tree:t,startTime:n,transferSize:0}}static createSegment(t,n,a,i,o,r){let s=t[n],p=Object.keys(t),c=p.indexOf(n)===p.length-1,l=!!s.children&&Object.keys(s.children).length>0,m=Array.isArray(o)?o.slice(0):[];return typeof r<"u"&&m.push(!r),{node:s,isLastChild:c,hasChildren:l,startTime:a,transferSize:i+s.request.transferSize,treeMarkers:m}}static createChainNode(t,n,a){let i=t.createComponent("crcChain");t.find(".lh-crc-node",i).setAttribute("title",n.node.request.url);let o=t.find(".lh-crc-node__tree-marker",i);n.treeMarkers.forEach(m=>{let d=m?"lh-tree-marker lh-vert":"lh-tree-marker";o.append(t.createElement("span",d),t.createElement("span","lh-tree-marker"))});let r=n.isLastChild?"lh-tree-marker lh-up-right":"lh-tree-marker lh-vert-right",s=n.hasChildren?"lh-tree-marker lh-horiz-down":"lh-tree-marker lh-right";o.append(t.createElement("span",r),t.createElement("span","lh-tree-marker lh-right"),t.createElement("span",s));let p=n.node.request.url,c=a.renderTextURL(p),l=t.find(".lh-crc-node__tree-value",i);if(l.append(c),!n.hasChildren){let{startTime:m,endTime:d,transferSize:h}=n.node.request,g=t.createElement("span","lh-crc-node__chain-duration");g.textContent=" - "+v.i18n.formatMilliseconds((d-m)*1e3)+", ";let y=t.createElement("span","lh-crc-node__chain-duration");y.textContent=v.i18n.formatBytesToKiB(h,.01),l.append(g,y)}return i}static buildTree(t,n,a,i,o,r){if(i.append(_e.createChainNode(t,a,r)),a.node.children)for(let s of Object.keys(a.node.children)){let p=_e.createSegment(a.node.children,s,a.startTime,a.transferSize,a.treeMarkers,a.isLastChild);_e.buildTree(t,n,p,i,o,r)}}static render(t,n,a){let i=t.createComponent("crc"),o=t.find(".lh-crc",i);t.find(".lh-crc-initial-nav",i).textContent=v.strings.crcInitialNavigation,t.find(".lh-crc__longest_duration_label",i).textContent=v.strings.crcLongestDurationLabel,t.find(".lh-crc__longest_duration",i).textContent=v.i18n.formatMilliseconds(n.longestChain.duration);let r=_e.initTree(n.chains);for(let s of Object.keys(r.tree)){let p=_e.createSegment(r.tree,s,r.startTime,r.transferSize);_e.buildTree(t,i,p,o,n,a)}return t.find(".lh-crc-container",i)}},_e=ze;function Io(e,t){return t.left<=e.width&&0<=t.right&&t.top<=e.height&&0<=t.bottom}function Ea(e,t,n){return e<t?t:e>n?n:e}function Ro(e){return{x:e.left+e.width/2,y:e.top+e.height/2}}var le=class e{static getScreenshotPositions(t,n,a){let i=Ro(t),o=Ea(i.x-n.width/2,0,a.width-n.width),r=Ea(i.y-n.height/2,0,a.height-n.height);return{screenshot:{left:o,top:r},clip:{left:t.left-o,top:t.top-r}}}static renderClipPathInScreenshot(t,n,a,i,o){let r=t.find("clipPath",n),s=`clip-${v.getUniqueSuffix()}`;r.id=s,n.style.clipPath=`url(#${s})`;let p=a.top/o.height,c=p+i.height/o.height,l=a.left/o.width,m=l+i.width/o.width,d=[`0,0 1,0 1,${p} 0,${p}`,`0,${c} 1,${c} 1,1 0,1`,`0,${p} ${l},${p} ${l},${c} 0,${c}`,`${m},${p} 1,${p} 1,${c} ${m},${c}`];for(let h of d){let g=t.createElementNS("http://www.w3.org/2000/svg","polygon");g.setAttribute("points",h),r.append(g)}}static installFullPageScreenshot(t,n){t.style.setProperty("--element-screenshot-url",`url('${n.data}')`)}static installOverlayFeature(t){let{dom:n,rootEl:a,overlayContainerEl:i,fullPageScreenshot:o}=t,r="lh-screenshot-overlay--enabled";a.classList.contains(r)||(a.classList.add(r),a.addEventListener("click",s=>{let p=s.target;if(!p)return;let c=p.closest(".lh-node > .lh-element-screenshot");if(!c)return;let l=n.createElement("div","lh-element-screenshot__overlay");i.append(l);let m={width:l.clientWidth*.95,height:l.clientHeight*.8},d={width:Number(c.dataset.rectWidth),height:Number(c.dataset.rectHeight),left:Number(c.dataset.rectLeft),right:Number(c.dataset.rectLeft)+Number(c.dataset.rectWidth),top:Number(c.dataset.rectTop),bottom:Number(c.dataset.rectTop)+Number(c.dataset.rectHeight)},h=e.render(n,o.screenshot,d,m);if(!h){l.remove();return}l.append(h),l.addEventListener("click",()=>l.remove())}))}static _computeZoomFactor(t,n){let i={x:n.width/t.width,y:n.height/t.height},o=.75*Math.min(i.x,i.y);return Math.min(1,o)}static render(t,n,a,i){if(!Io(n,a))return null;let o=t.createComponent("elementScreenshot"),r=t.find("div.lh-element-screenshot",o);r.dataset.rectWidth=a.width.toString(),r.dataset.rectHeight=a.height.toString(),r.dataset.rectLeft=a.left.toString(),r.dataset.rectTop=a.top.toString();let s=this._computeZoomFactor(a,i),p={width:i.width/s,height:i.height/s};p.width=Math.min(n.width,p.width),p.height=Math.min(n.height,p.height);let c={width:p.width*s,height:p.height*s},l=e.getScreenshotPositions(a,p,{width:n.width,height:n.height}),m=t.find("div.lh-element-screenshot__image",r);m.style.width=c.width+"px",m.style.height=c.height+"px",m.style.backgroundPositionY=-(l.screenshot.top*s)+"px",m.style.backgroundPositionX=-(l.screenshot.left*s)+"px",m.style.backgroundSize=`${n.width*s}px ${n.height*s}px`;let d=t.find("div.lh-element-screenshot__element-marker",r);d.style.width=a.width*s+"px",d.style.height=a.height*s+"px",d.style.left=l.clip.left*s+"px",d.style.top=l.clip.top*s+"px";let h=t.find("div.lh-element-screenshot__mask",r);return h.style.width=c.width+"px",h.style.height=c.height+"px",e.renderClipPathInScreenshot(t,h,l.clip,a,p),r}};var No=["http://","https://","data:"],Do=["bytes","numeric","ms","timespanMs"],we=class{constructor(t,n={}){this._dom=t,this._fullPageScreenshot=n.fullPageScreenshot,this._entities=n.entities}render(t){switch(t.type){case"filmstrip":return this._renderFilmstrip(t);case"list":return this._renderList(t);case"table":case"opportunity":return this._renderTable(t);case"criticalrequestchain":return ze.render(this._dom,t,this);case"screenshot":case"debugdata":case"treemap-data":return null;default:return this._renderUnknown(t.type,t)}}_renderBytes(t){let n=v.i18n.formatBytesToKiB(t.value,t.granularity||.1),a=this._renderText(n);return a.title=v.i18n.formatBytes(t.value),a}_renderMilliseconds(t){let n;return t.displayUnit==="duration"?n=v.i18n.formatDuration(t.value):n=v.i18n.formatMilliseconds(t.value,t.granularity||10),this._renderText(n)}renderTextURL(t){let n=t,a,i,o;try{let s=R.parseURL(n);a=s.file==="/"?s.origin:s.file,i=s.file==="/"||s.hostname===""?"":`(${s.hostname})`,o=n}catch{a=n}let r=this._dom.createElement("div","lh-text__url");if(r.append(this._renderLink({text:a,url:n})),i){let s=this._renderText(i);s.classList.add("lh-text__url-host"),r.append(s)}return o&&(r.title=n,r.dataset.url=n),r}_renderLink(t){let n=this._dom.createElement("a");if(this._dom.safelySetHref(n,t.url),!n.href){let a=this._renderText(t.text);return a.classList.add("lh-link"),a}return n.rel="noopener",n.target="_blank",n.textContent=t.text,n.classList.add("lh-link"),n}_renderText(t){let n=this._dom.createElement("div","lh-text");return n.textContent=t,n}_renderNumeric(t){let n=v.i18n.formatNumber(t.value,t.granularity||.1),a=this._dom.createElement("div","lh-numeric");return a.textContent=n,a}_renderThumbnail(t){let n=this._dom.createElement("img","lh-thumbnail"),a=t;return n.src=a,n.title=a,n.alt="",n}_renderUnknown(t,n){console.error(`Unknown details type: ${t}`,n);let a=this._dom.createElement("details","lh-unknown");return this._dom.createChildOf(a,"summary").textContent=`We don't know how to render audit details of type \`${t}\`. The Lighthouse version that collected this data is likely newer than the Lighthouse version of the report renderer. Expand for the raw JSON.`,this._dom.createChildOf(a,"pre").textContent=JSON.stringify(n,null,2),a}_renderTableValue(t,n){if(t==null)return null;if(typeof t=="object")switch(t.type){case"code":return this._renderCode(t.value);case"link":return this._renderLink(t);case"node":return this.renderNode(t);case"numeric":return this._renderNumeric(t);case"source-location":return this.renderSourceLocation(t);case"url":return this.renderTextURL(t.value);default:return this._renderUnknown(t.type,t)}switch(n.valueType){case"bytes":{let a=Number(t);return this._renderBytes({value:a,granularity:n.granularity})}case"code":{let a=String(t);return this._renderCode(a)}case"ms":{let a={value:Number(t),granularity:n.granularity,displayUnit:n.displayUnit};return this._renderMilliseconds(a)}case"numeric":{let a=Number(t);return this._renderNumeric({value:a,granularity:n.granularity})}case"text":{let a=String(t);return this._renderText(a)}case"thumbnail":{let a=String(t);return this._renderThumbnail(a)}case"timespanMs":{let a=Number(t);return this._renderMilliseconds({value:a})}case"url":{let a=String(t);return No.some(i=>a.startsWith(i))?this.renderTextURL(a):this._renderCode(a)}default:return this._renderUnknown(n.valueType,t)}}_getDerivedSubItemsHeading(t){return t.subItemsHeading?{key:t.subItemsHeading.key||"",valueType:t.subItemsHeading.valueType||t.valueType,granularity:t.subItemsHeading.granularity||t.granularity,displayUnit:t.subItemsHeading.displayUnit||t.displayUnit,label:""}:null}_renderTableRow(t,n){let a=this._dom.createElement("tr");for(let i of n){if(!i||!i.key){this._dom.createChildOf(a,"td","lh-table-column--empty");continue}let o=t[i.key],r;if(o!=null&&(r=this._renderTableValue(o,i)),r){let s=`lh-table-column--${i.valueType}`;this._dom.createChildOf(a,"td",s).append(r)}else this._dom.createChildOf(a,"td","lh-table-column--empty")}return a}_renderTableRowsFromItem(t,n){let a=this._dom.createFragment();if(a.append(this._renderTableRow(t,n)),!t.subItems)return a;let i=n.map(this._getDerivedSubItemsHeading);if(!i.some(Boolean))return a;for(let o of t.subItems.items){let r=this._renderTableRow(o,i);r.classList.add("lh-sub-item-row"),a.append(r)}return a}_adornEntityGroupRow(t){let n=t.dataset.entity;if(!n)return;let a=this._entities?.find(o=>o.name===n);if(!a)return;let i=this._dom.find("td",t);if(a.category){let o=this._dom.createElement("span");o.classList.add("lh-audit__adorn"),o.textContent=a.category,i.append(" ",o)}if(a.isFirstParty){let o=this._dom.createElement("span");o.classList.add("lh-audit__adorn","lh-audit__adorn1p"),o.textContent=v.strings.firstPartyChipLabel,i.append(" ",o)}if(a.homepage){let o=this._dom.createElement("a");o.href=a.homepage,o.target="_blank",o.title=v.strings.openInANewTabTooltip,o.classList.add("lh-report-icon--external"),i.append(" ",o)}}_renderEntityGroupRow(t,n){let a={...n[0]};a.valueType="text";let i=[a,...n.slice(1)],o=this._dom.createFragment();return o.append(this._renderTableRow(t,i)),this._dom.find("tr",o).classList.add("lh-row--group"),o}_getEntityGroupItems(t){let{items:n,headings:a,sortedBy:i}=t;if(!n.length||t.isEntityGrouped||!n.some(l=>l.entity))return[];let o=new Set(t.skipSumming||[]),r=[];for(let l of a)!l.key||o.has(l.key)||Do.includes(l.valueType)&&r.push(l.key);let s=a[0].key;if(!s)return[];let p=new Map;for(let l of n){let m=typeof l.entity=="string"?l.entity:void 0,d=p.get(m)||{[s]:m||v.strings.unattributable,entity:m};for(let h of r)d[h]=Number(d[h]||0)+Number(l[h]||0);p.set(m,d)}let c=[...p.values()];return i&&c.sort(E.getTableItemSortComparator(i)),c}_renderTable(t){if(!t.items.length)return this._dom.createElement("span");let n=this._dom.createElement("table","lh-table"),a=this._dom.createChildOf(n,"thead"),i=this._dom.createChildOf(a,"tr");for(let s of t.headings){let c=`lh-table-column--${s.valueType||"text"}`,l=this._dom.createElement("div","lh-text");l.textContent=s.label,this._dom.createChildOf(i,"th",c).append(l)}let o=this._getEntityGroupItems(t),r=this._dom.createChildOf(n,"tbody");if(o.length)for(let s of o){let p=typeof s.entity=="string"?s.entity:void 0,c=this._renderEntityGroupRow(s,t.headings);for(let m of t.items.filter(d=>d.entity===p))c.append(this._renderTableRowsFromItem(m,t.headings));let l=this._dom.findAll("tr",c);p&&l.length&&(l.forEach(m=>m.dataset.entity=p),this._adornEntityGroupRow(l[0])),r.append(c)}else{let s=!0;for(let p of t.items){let c=this._renderTableRowsFromItem(p,t.headings),l=this._dom.findAll("tr",c),m=l[0];if(typeof p.entity=="string"&&(m.dataset.entity=p.entity),t.isEntityGrouped&&p.entity)m.classList.add("lh-row--group"),this._adornEntityGroupRow(m);else for(let d of l)d.classList.add(s?"lh-row--even":"lh-row--odd");s=!s,r.append(c)}}return n}_renderList(t){let n=this._dom.createElement("div","lh-list");return t.items.forEach(a=>{let i=this.render(a);i&&n.append(i)}),n}renderNode(t){let n=this._dom.createElement("span","lh-node");if(t.nodeLabel){let r=this._dom.createElement("div");r.textContent=t.nodeLabel,n.append(r)}if(t.snippet){let r=this._dom.createElement("div");r.classList.add("lh-node__snippet"),r.textContent=t.snippet,n.append(r)}if(t.selector&&(n.title=t.selector),t.path&&n.setAttribute("data-path",t.path),t.selector&&n.setAttribute("data-selector",t.selector),t.snippet&&n.setAttribute("data-snippet",t.snippet),!this._fullPageScreenshot)return n;let a=t.lhId&&this._fullPageScreenshot.nodes[t.lhId];if(!a||a.width===0||a.height===0)return n;let i={width:147,height:100},o=le.render(this._dom,this._fullPageScreenshot.screenshot,a,i);return o&&n.prepend(o),n}renderSourceLocation(t){if(!t.url)return null;let n=`${t.url}:${t.line+1}:${t.column}`,a;t.original&&(a=`${t.original.file||"<unmapped>"}:${t.original.line+1}:${t.original.column}`);let i;if(t.urlProvider==="network"&&a)i=this._renderLink({url:t.url,text:a}),i.title=`maps to generated location ${n}`;else if(t.urlProvider==="network"&&!a)i=this.renderTextURL(t.url),this._dom.find(".lh-link",i).textContent+=`:${t.line+1}:${t.column}`;else if(t.urlProvider==="comment"&&a)i=this._renderText(`${a} (from source map)`),i.title=`${n} (from sourceURL)`;else if(t.urlProvider==="comment"&&!a)i=this._renderText(`${n} (from sourceURL)`);else return null;return i.classList.add("lh-source-location"),i.setAttribute("data-source-url",t.url),i.setAttribute("data-source-line",String(t.line)),i.setAttribute("data-source-column",String(t.column)),i}_renderFilmstrip(t){let n=this._dom.createElement("div","lh-filmstrip");for(let a of t.items){let i=this._dom.createChildOf(n,"div","lh-filmstrip__frame"),o=this._dom.createChildOf(i,"img","lh-filmstrip__thumbnail");o.src=a.data,o.alt="Screenshot"}return n}_renderCode(t){let n=this._dom.createElement("pre","lh-code");return n.textContent=t,n}};function La(e){let t=e.createComponent("explodeyGauge");return e.find(".lh-exp-gauge-component",t)}function Ua(e,t,n){let a=e.find("div.lh-exp-gauge__wrapper",t);a.className="",a.classList.add("lh-exp-gauge__wrapper",`lh-exp-gauge__wrapper--${E.calculateRating(n.score)}`),jo(e,a,n)}function zo(e,t,n){n=n||e/32;let a=e/n,i=.5*n,o=a+i+n,r=2*Math.PI*a,s=Math.acos(1-.5*Math.pow(.5*n/a,2))*a,p=2*Math.PI*o,c=Math.acos(1-.5*Math.pow(.5*n/o,2))*o;return{radiusInner:a,radiusOuter:o,circumferenceInner:r,circumferenceOuter:p,getArcLength:()=>Math.max(0,Number(t*r)),getMetricArcLength:(l,m=!1)=>{let d=m?0:2*c;return Math.max(0,Number(l*p-i-d))},endDiffInner:s,endDiffOuter:c,strokeWidth:n,strokeGap:i}}function jo(e,t,n){let o=Number(n.score),{radiusInner:r,radiusOuter:s,circumferenceInner:p,circumferenceOuter:c,getArcLength:l,getMetricArcLength:m,endDiffInner:d,endDiffOuter:h,strokeWidth:g,strokeGap:y}=zo(128,o),f=e.find("svg.lh-exp-gauge",t);e.find(".lh-exp-gauge__label",f).textContent=n.title,f.setAttribute("viewBox",[-64,-64/2,128,128/2].join(" ")),f.style.setProperty("--stroke-width",`${g}px`),f.style.setProperty("--circle-meas",(2*Math.PI).toFixed(4));let _=e.find("g.lh-exp-gauge__outer",t),A=e.find("g.lh-exp-gauge__inner",t),P=e.find("circle.lh-cover",_),S=e.find("circle.lh-exp-gauge__arc",A),T=e.find("text.lh-exp-gauge__percentage",A);_.style.setProperty("--scale-initial",String(r/s)),_.style.setProperty("--radius",`${s}px`),P.style.setProperty("--radius",`${.5*(r+s)}px`),P.setAttribute("stroke-width",String(y)),f.style.setProperty("--radius",`${r}px`),S.setAttribute("stroke-dasharray",`${l()} ${(p-l()).toFixed(4)}`),S.setAttribute("stroke-dashoffset",String(.25*p-d)),T.textContent=Math.round(o*100).toString();let b=s+g,C=s-g,x=n.auditRefs.filter(U=>U.group==="metrics"&&U.weight),D=x.reduce((U,M)=>U+=M.weight,0),z=.25*c-h-.5*y,j=-.5*Math.PI;_.querySelectorAll(".metric").forEach(U=>{x.map(G=>`metric--${G.id}`).find(G=>U.classList.contains(G))||U.remove()}),x.forEach((U,M)=>{let O=U.acronym??U.id,G=!_.querySelector(`.metric--${O}`),$=e.maybeFind(`g.metric--${O}`,_)||e.createSVGElement("g"),de=e.maybeFind(`.metric--${O} circle.lh-exp-gauge--faded`,_)||e.createSVGElement("circle"),xe=e.maybeFind(`.metric--${O} circle.lh-exp-gauge--miniarc`,_)||e.createSVGElement("circle"),me=e.maybeFind(`.metric--${O} circle.lh-exp-gauge-hovertarget`,_)||e.createSVGElement("circle"),K=e.maybeFind(`.metric--${O} text.metric__label`,_)||e.createSVGElement("text"),Q=e.maybeFind(`.metric--${O} text.metric__value`,_)||e.createSVGElement("text");$.classList.add("metric",`metric--${O}`),de.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge--faded"),xe.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge--miniarc"),me.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge-hovertarget");let he=U.weight/D,Xt=m(he),Yt=U.result.score?U.result.score*he:0,Qt=m(Yt),ni=he*c,en=m(he,!0),tn=E.calculateRating(U.result.score,U.result.scoreDisplayMode);$.style.setProperty("--metric-rating",tn),$.style.setProperty("--metric-color",`var(--color-${tn})`),$.style.setProperty("--metric-offset",`${z}`),$.style.setProperty("--i",M.toString()),de.setAttribute("stroke-dasharray",`${Xt} ${c-Xt}`),xe.style.setProperty("--metric-array",`${Qt} ${c-Qt}`),me.setAttribute("stroke-dasharray",`${en} ${c-en-h}`),K.classList.add("metric__label"),Q.classList.add("metric__value"),K.textContent=O,Q.textContent=`+${Math.round(Yt*100)}`;let nn=j+he*Math.PI,Se=Math.cos(nn),ke=Math.sin(nn);switch(!0){case Se>0:Q.setAttribute("text-anchor","end");break;case Se<0:K.setAttribute("text-anchor","end");break;case Se===0:K.setAttribute("text-anchor","middle"),Q.setAttribute("text-anchor","middle");break}switch(!0){case ke>0:K.setAttribute("dominant-baseline","hanging");break;case ke<0:Q.setAttribute("dominant-baseline","hanging");break;case ke===0:K.setAttribute("dominant-baseline","middle"),Q.setAttribute("dominant-baseline","middle");break}K.setAttribute("x",(b*Se).toFixed(2)),K.setAttribute("y",(b*ke).toFixed(2)),Q.setAttribute("x",(C*Se).toFixed(2)),Q.setAttribute("y",(C*ke).toFixed(2)),G&&($.appendChild(de),$.appendChild(xe),$.appendChild(me),$.appendChild(K),$.appendChild(Q),_.appendChild($)),z-=ni,j+=he*2*Math.PI});let F=_.querySelector(".lh-exp-gauge-underhovertarget")||e.createSVGElement("circle");F.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge-hovertarget","lh-exp-gauge-underhovertarget");let Z=m(1,!0);if(F.setAttribute("stroke-dasharray",`${Z} ${c-Z-h}`),F.isConnected||_.prepend(F),f.dataset.listenersSetup)return;f.dataset.listenersSetup=!0,je(f),f.addEventListener("pointerover",U=>{if(U.target===f&&f.classList.contains("state--expanded")){f.classList.remove("state--expanded"),f.classList.contains("state--highlight")&&(f.classList.remove("state--highlight"),e.find(".metric--highlight",f).classList.remove("metric--highlight"));return}if(!(U.target instanceof Element))return;let M=U.target.parentNode;if(M instanceof SVGElement){if(M&&M===A){f.classList.contains("state--expanded")?f.classList.contains("state--highlight")&&(f.classList.remove("state--highlight"),e.find(".metric--highlight",f).classList.remove("metric--highlight")):f.classList.add("state--expanded");return}if(M&&M.classList&&M.classList.contains("metric")){let O=M.style.getPropertyValue("--metric-rating");if(t.style.setProperty("--color-highlight",`var(--color-${O}-secondary)`),!f.classList.contains("state--highlight"))f.classList.add("state--highlight"),M.classList.add("metric--highlight");else{let G=e.find(".metric--highlight",f);M!==G&&(G.classList.remove("metric--highlight"),M.classList.add("metric--highlight"))}}}}),f.addEventListener("mouseleave",()=>{f.classList.remove("state--highlight"),f.querySelector(".metric--highlight")?.classList.remove("metric--highlight")});async function je(U){if(await new Promise(K=>setTimeout(K,1e3)),U.classList.contains("state--expanded"))return;let M=e.find(".lh-exp-gauge__inner",U),O=`uniq-${Math.random()}`;M.setAttribute("id",O);let G=e.createSVGElement("use");G.setAttribute("href",`#${O}`),U.appendChild(G);let $=2.5;U.style.setProperty("--peek-dur",`${$}s`),U.classList.add("state--peek","state--expanded");let de=()=>{U.classList.remove("state--peek","state--expanded"),G.remove()},xe=setTimeout(()=>{U.removeEventListener("mouseenter",me),de()},$*1e3*1.5);function me(){clearTimeout(xe),de()}U.addEventListener("mouseenter",me,{once:!0})}}var mt=class extends Y{_renderMetric(t){let n=this.dom.createComponent("metric"),a=this.dom.find(".lh-metric",n);a.id=t.result.id;let i=E.calculateRating(t.result.score,t.result.scoreDisplayMode);a.classList.add(`lh-metric--${i}`);let o=this.dom.find(".lh-metric__title",n);o.textContent=t.result.title;let r=this.dom.find(".lh-metric__value",n);r.textContent=t.result.displayValue||"";let s=this.dom.find(".lh-metric__description",n);if(s.append(this.dom.convertMarkdownLinkSnippets(t.result.description)),t.result.scoreDisplayMode==="error"){s.textContent="",r.textContent="Error!";let p=this.dom.createChildOf(s,"span");p.textContent=t.result.errorMessage||"Report error: no metric information"}else t.result.scoreDisplayMode==="notApplicable"&&(r.textContent="--");return a}_getScoringCalculatorHref(t){let n=t.filter(m=>m.group==="metrics"),a=t.find(m=>m.id==="interactive"),i=t.find(m=>m.id==="first-cpu-idle"),o=t.find(m=>m.id==="first-meaningful-paint");a&&n.push(a),i&&n.push(i),o&&n.push(o);let r=m=>Math.round(m*100)/100,p=[...n.map(m=>{let d;return typeof m.result.numericValue=="number"?(d=m.id==="cumulative-layout-shift"?r(m.result.numericValue):Math.round(m.result.numericValue),d=d.toString()):d="null",[m.acronym||m.id,d]})];v.reportJson&&(p.push(["device",v.reportJson.configSettings.formFactor]),p.push(["version",v.reportJson.lighthouseVersion]));let c=new URLSearchParams(p),l=new URL("https://googlechrome.github.io/lighthouse/scorecalc/");return l.hash=c.toString(),l.href}_isPerformanceInsight(t){return!t.group}overallImpact(t,n){if(!t.result.metricSavings)return{overallImpact:0,overallLinearImpact:0};let a=0,i=0;for(let[o,r]of Object.entries(t.result.metricSavings)){if(r===void 0)continue;let s=n.find(h=>h.acronym===o);if(!s||s.result.score===null)continue;let p=s.result.numericValue;if(!p)continue;let c=r/p*s.weight;i+=c;let l=s.result.scoringOptions;if(!l)continue;let d=(R.computeLogNormalScore(l,p-r)-s.result.score)*s.weight;a+=d}return{overallImpact:a,overallLinearImpact:i}}render(t,n,a){let i=v.strings,o=this.dom.createElement("div","lh-category");o.id=t.id,o.append(this.renderCategoryHeader(t,n,a));let r=t.auditRefs.filter(b=>b.group==="metrics");if(r.length){let[b,C]=this.renderAuditGroup(n.metrics),x=this.dom.createElement("input","lh-metrics-toggle__input"),D=`lh-metrics-toggle${v.getUniqueSuffix()}`;x.setAttribute("aria-label","Toggle the display of metric descriptions"),x.type="checkbox",x.id=D,b.prepend(x);let z=this.dom.find(".lh-audit-group__header",b),j=this.dom.createChildOf(z,"label","lh-metrics-toggle__label");j.htmlFor=D;let F=this.dom.createChildOf(j,"span","lh-metrics-toggle__labeltext--show"),Z=this.dom.createChildOf(j,"span","lh-metrics-toggle__labeltext--hide");F.textContent=v.strings.expandView,Z.textContent=v.strings.collapseView;let je=this.dom.createElement("div","lh-metrics-container");if(b.insertBefore(je,C),r.forEach(U=>{je.append(this._renderMetric(U))}),o.querySelector(".lh-gauge__wrapper")){let U=this.dom.find(".lh-category-header__description",o),M=this.dom.createChildOf(U,"div","lh-metrics__disclaimer"),O=this.dom.convertMarkdownLinkSnippets(i.varianceDisclaimer);M.append(O);let G=this.dom.createChildOf(M,"a","lh-calclink");G.target="_blank",G.textContent=i.calculatorLink,this.dom.safelySetHref(G,this._getScoringCalculatorHref(t.auditRefs))}b.classList.add("lh-audit-group--metrics"),o.append(b)}let s=this.dom.createChildOf(o,"div","lh-filmstrip-container"),c=t.auditRefs.find(b=>b.id==="screenshot-thumbnails")?.result;if(c?.details){s.id=c.id;let b=this.detailsRenderer.render(c.details);b&&s.append(b)}let l=t.auditRefs.filter(b=>this._isPerformanceInsight(b)).map(b=>{let{overallImpact:C,overallLinearImpact:x}=this.overallImpact(b,r),D=b.result.guidanceLevel||1,z=this.renderAudit(b);return{auditRef:b,auditEl:z,overallImpact:C,overallLinearImpact:x,guidanceLevel:D}}),m=l.filter(b=>!E.showAsPassed(b.auditRef.result)),d=l.filter(b=>E.showAsPassed(b.auditRef.result)),[h,g]=this.renderAuditGroup(n.diagnostics);h.classList.add("lh-audit-group--diagnostics");function y(b){for(let C of l)if(b==="All")C.auditEl.hidden=!1;else{let x=C.auditRef.result.metricSavings?.[b]===void 0;C.auditEl.hidden=x}m.sort((C,x)=>{let D=C.auditRef.result.score||0,z=x.auditRef.result.score||0;if(D!==z)return D-z;if(b!=="All"){let j=C.auditRef.result.metricSavings?.[b]??-1,F=x.auditRef.result.metricSavings?.[b]??-1;if(j!==F)return F-j}return C.overallImpact!==x.overallImpact?x.overallImpact*x.guidanceLevel-C.overallImpact*C.guidanceLevel:C.overallImpact===0&&x.overallImpact===0&&C.overallLinearImpact!==x.overallLinearImpact?x.overallLinearImpact*x.guidanceLevel-C.overallLinearImpact*C.guidanceLevel:x.guidanceLevel-C.guidanceLevel});for(let C of m)h.insertBefore(C.auditEl,g)}let f=new Set;for(let b of m){let C=b.auditRef.result.metricSavings||{};for(let[x,D]of Object.entries(C))typeof D=="number"&&f.add(x)}let _=r.filter(b=>b.acronym&&f.has(b.acronym));if(_.length&&this.renderMetricAuditFilter(_,o,y),y("All"),m.length&&o.append(h),!d.length)return o;let A={auditRefsOrEls:d.map(b=>b.auditEl),groupDefinitions:n},P=this.renderClump("passed",A);o.append(P);let S=[];if(["performance-budget","timing-budget"].forEach(b=>{let C=t.auditRefs.find(x=>x.id===b);if(C?.result.details){let x=this.detailsRenderer.render(C.result.details);x&&(x.id=b,x.classList.add("lh-details","lh-details--budget","lh-audit"),S.push(x))}}),S.length>0){let[b,C]=this.renderAuditGroup(n.budgets);S.forEach(x=>b.insertBefore(x,C)),b.classList.add("lh-audit-group--budgets"),o.append(b)}if((!a||a?.gatherMode==="navigation")&&t.score!==null){let b=La(this.dom);Ua(this.dom,b,t),this.dom.find(".lh-score__gauge",o).replaceWith(b)}return o}renderMetricAuditFilter(t,n,a){let i=this.dom.createElement("div","lh-metricfilter"),o=this.dom.createChildOf(i,"span","lh-metricfilter__text");o.textContent=v.strings.showRelevantAudits;let r=[{acronym:"All",id:"All"},...t],s=v.getUniqueSuffix();for(let p of r){let c=`metric-${p.acronym}-${s}`,l=this.dom.createChildOf(i,"input","lh-metricfilter__radio");l.type="radio",l.name=`metricsfilter-${s}`,l.id=c;let m=this.dom.createChildOf(i,"label","lh-metricfilter__label");m.htmlFor=c,m.title="result"in p?p.result.title:"",m.textContent=p.acronym||p.id,p.acronym==="All"&&(l.checked=!0,m.classList.add("lh-metricfilter__label--active")),n.append(i),l.addEventListener("input",d=>{for(let g of n.querySelectorAll("label.lh-metricfilter__label"))g.classList.toggle("lh-metricfilter__label--active",g.htmlFor===c);n.classList.toggle("lh-category--filtered",p.acronym!=="All"),a(p.acronym||"All");let h=n.querySelectorAll("div.lh-audit-group, details.lh-audit-group");for(let g of h){g.hidden=!1;let y=Array.from(g.querySelectorAll("div.lh-audit")),f=!!y.length&&y.every(_=>_.hidden);g.hidden=f}})}}};var ht=class e extends Y{render(t,n={}){let a=this.dom.createElement("div","lh-category");a.id=t.id;let i=this.dom.createComponent("warningsToplevel");this.dom.find(".lh-warnings__msg",i).append(this.dom.convertMarkdownLinkSnippets(v.strings.pwaRemovalMessage)),a.append(i),a.append(this.renderCategoryHeader(t,n));let r=t.auditRefs,s=r.filter(m=>m.result.scoreDisplayMode!=="manual"),p=this._renderAudits(s,n);a.append(p);let c=r.filter(m=>m.result.scoreDisplayMode==="manual"),l=this.renderClump("manual",{auditRefsOrEls:c,description:t.manualDescription,openByDefault:!0});return a.append(l),a}renderCategoryScore(t,n){if(t.score===null)return super.renderScoreGauge(t,n);let a=this.dom.createComponent("gaugePwa"),i=this.dom.find("a.lh-gauge--pwa__wrapper",a),o=a.querySelector("svg");if(!o)throw new Error("no SVG element found in PWA score gauge template");e._makeSvgReferencesUnique(o);let r=this._getGroupIds(t.auditRefs),s=this._getPassingGroupIds(t.auditRefs);if(s.size===r.size)i.classList.add("lh-badged--all");else for(let p of s)i.classList.add(`lh-badged--${p}`);return this.dom.find(".lh-gauge__label",a).textContent=t.title,i.title=this._getGaugeTooltip(t.auditRefs,n),a}_getGroupIds(t){let n=t.map(a=>a.group).filter(a=>!!a);return new Set(n)}_getPassingGroupIds(t){let n=this._getGroupIds(t);for(let a of t)!E.showAsPassed(a.result)&&a.group&&n.delete(a.group);return n}_getGaugeTooltip(t,n){let a=this._getGroupIds(t),i=[];for(let o of a){let r=t.filter(l=>l.group===o),s=r.length,p=r.filter(l=>E.showAsPassed(l.result)).length,c=n[o].title;i.push(`${c}: ${p}/${s}`)}return i.join(", ")}_renderAudits(t,n){let a=this.renderUnexpandableClump(t,n),i=this._getPassingGroupIds(t);for(let o of i)this.dom.find(`.lh-audit-group--${o}`,a).classList.add("lh-badged");return a}static _makeSvgReferencesUnique(t){let n=t.querySelector("defs");if(!n)return;let a=v.getUniqueSuffix(),i=n.querySelectorAll("[id]");for(let o of i){let r=o.id,s=`${r}-${a}`;o.id=s;let p=t.querySelectorAll(`use[href="#${r}"]`);for(let l of p)l.setAttribute("href",`#${s}`);let c=t.querySelectorAll(`[fill="url(#${r})"]`);for(let l of c)l.setAttribute("fill",`url(#${s})`)}}};var gt=class{constructor(t){this._dom=t,this._opts={}}renderReport(t,n,a){if(!this._dom.rootEl&&n){console.warn("Please adopt the new report API in renderer/api.js.");let o=n.closest(".lh-root");o?this._dom.rootEl=o:(n.classList.add("lh-root","lh-vars"),this._dom.rootEl=n)}else this._dom.rootEl&&n&&(this._dom.rootEl=n);a&&(this._opts=a),this._dom.setLighthouseChannel(t.configSettings.channel||"unknown");let i=E.prepareReportResult(t);return this._dom.rootEl.textContent="",this._dom.rootEl.append(this._renderReport(i)),this._opts.occupyEntireViewport&&this._dom.rootEl.classList.add("lh-max-viewport"),this._dom.rootEl}_renderReportTopbar(t){let n=this._dom.createComponent("topbar"),a=this._dom.find("a.lh-topbar__url",n);return a.textContent=t.finalDisplayedUrl,a.title=t.finalDisplayedUrl,this._dom.safelySetHref(a,t.finalDisplayedUrl),n}_renderReportHeader(){let t=this._dom.createComponent("heading"),n=this._dom.createComponent("scoresWrapper");return this._dom.find(".lh-scores-wrapper-placeholder",t).replaceWith(n),t}_renderReportFooter(t){let n=this._dom.createComponent("footer");return this._renderMetaBlock(t,n),this._dom.find(".lh-footer__version_issue",n).textContent=v.strings.footerIssue,this._dom.find(".lh-footer__version",n).textContent=t.lighthouseVersion,n}_renderMetaBlock(t,n){let a=E.getEmulationDescriptions(t.configSettings||{}),i=t.userAgent.match(/(\w*Chrome\/[\d.]+)/),o=Array.isArray(i)?i[1].replace("/"," ").replace("Chrome","Chromium"):"Chromium",r=t.configSettings.channel,s=t.environment.benchmarkIndex.toFixed(0),p=t.environment.credits?.["axe-core"],c=[`${v.strings.runtimeSettingsBenchmark}: ${s}`,`${v.strings.runtimeSettingsCPUThrottling}: ${a.cpuThrottling}`];a.screenEmulation&&c.push(`${v.strings.runtimeSettingsScreenEmulation}: ${a.screenEmulation}`),p&&c.push(`${v.strings.runtimeSettingsAxeVersion}: ${p}`);let l=v.strings.runtimeAnalysisWindow;t.gatherMode==="timespan"?l=v.strings.runtimeAnalysisWindowTimespan:t.gatherMode==="snapshot"&&(l=v.strings.runtimeAnalysisWindowSnapshot);let m=[["date",`Captured at ${v.i18n.formatDateTime(t.fetchTime)}`],["devices",`${a.deviceEmulation} with Lighthouse ${t.lighthouseVersion}`,c.join(`
2710
+ `),t.append(n);let a=e.createElement("div","lh-topbar"),i=e.createElementNS("http://www.w3.org/2000/svg","svg","lh-topbar__logo");i.setAttribute("role","img"),i.setAttribute("title","Lighthouse logo"),i.setAttribute("fill","none"),i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("viewBox","0 0 48 48");let o=e.createElementNS("http://www.w3.org/2000/svg","path");o.setAttribute("d","m14 7 10-7 10 7v10h5v7h-5l5 24H9l5-24H9v-7h5V7Z"),o.setAttribute("fill","#F63");let r=e.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d","M31.561 24H14l-1.689 8.105L31.561 24ZM18.983 48H9l1.022-4.907L35.723 32.27l1.663 7.98L18.983 48Z"),r.setAttribute("fill","#FFA385");let s=e.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("fill","#FF3"),s.setAttribute("d","M20.5 10h7v7h-7z"),i.append(" ",o," ",r," ",s," ");let p=e.createElement("a","lh-topbar__url");p.setAttribute("href",""),p.setAttribute("target","_blank"),p.setAttribute("rel","noopener");let c=e.createElement("div","lh-tools"),l=e.createElement("div","lh-tools-locale lh-hidden"),m=e.createElement("button","lh-button lh-tool-locale__button");m.setAttribute("id","lh-button__swap-locales"),m.setAttribute("title","Show Language Picker"),m.setAttribute("aria-label","Toggle language picker"),m.setAttribute("aria-haspopup","menu"),m.setAttribute("aria-expanded","false"),m.setAttribute("aria-controls","lh-tools-locale__selector-wrapper");let d=e.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttribute("width","20px"),d.setAttribute("height","20px"),d.setAttribute("viewBox","0 0 24 24"),d.setAttribute("fill","currentColor");let h=e.createElementNS("http://www.w3.org/2000/svg","path");h.setAttribute("d","M0 0h24v24H0V0z"),h.setAttribute("fill","none");let g=e.createElementNS("http://www.w3.org/2000/svg","path");g.setAttribute("d","M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"),d.append(h,g),m.append(" ",d," ");let y=e.createElement("div","lh-tools-locale__selector-wrapper");y.setAttribute("id","lh-tools-locale__selector-wrapper"),y.setAttribute("role","menu"),y.setAttribute("aria-labelledby","lh-button__swap-locales"),y.setAttribute("aria-hidden","true"),y.append(" "," "),l.append(" ",m," ",y," ");let f=e.createElement("button","lh-tools__button");f.setAttribute("id","lh-tools-button"),f.setAttribute("title","Tools menu"),f.setAttribute("aria-label","Toggle report tools menu"),f.setAttribute("aria-haspopup","menu"),f.setAttribute("aria-expanded","false"),f.setAttribute("aria-controls","lh-tools-dropdown");let _=e.createElementNS("http://www.w3.org/2000/svg","svg");_.setAttribute("width","100%"),_.setAttribute("height","100%"),_.setAttribute("viewBox","0 0 24 24");let A=e.createElementNS("http://www.w3.org/2000/svg","path");A.setAttribute("d","M0 0h24v24H0z"),A.setAttribute("fill","none");let P=e.createElementNS("http://www.w3.org/2000/svg","path");P.setAttribute("d","M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"),_.append(" ",A," ",P," "),f.append(" ",_," ");let S=e.createElement("div","lh-tools__dropdown");S.setAttribute("id","lh-tools-dropdown"),S.setAttribute("role","menu"),S.setAttribute("aria-labelledby","lh-tools-button");let T=e.createElement("a","lh-report-icon lh-report-icon--print");T.setAttribute("role","menuitem"),T.setAttribute("tabindex","-1"),T.setAttribute("href","#"),T.setAttribute("data-i18n","dropdownPrintSummary"),T.setAttribute("data-action","print-summary");let b=e.createElement("a","lh-report-icon lh-report-icon--print");b.setAttribute("role","menuitem"),b.setAttribute("tabindex","-1"),b.setAttribute("href","#"),b.setAttribute("data-i18n","dropdownPrintExpanded"),b.setAttribute("data-action","print-expanded");let C=e.createElement("a","lh-report-icon lh-report-icon--copy");C.setAttribute("role","menuitem"),C.setAttribute("tabindex","-1"),C.setAttribute("href","#"),C.setAttribute("data-i18n","dropdownCopyJSON"),C.setAttribute("data-action","copy");let x=e.createElement("a","lh-report-icon lh-report-icon--download lh-hidden");x.setAttribute("role","menuitem"),x.setAttribute("tabindex","-1"),x.setAttribute("href","#"),x.setAttribute("data-i18n","dropdownSaveHTML"),x.setAttribute("data-action","save-html");let D=e.createElement("a","lh-report-icon lh-report-icon--download");D.setAttribute("role","menuitem"),D.setAttribute("tabindex","-1"),D.setAttribute("href","#"),D.setAttribute("data-i18n","dropdownSaveJSON"),D.setAttribute("data-action","save-json");let z=e.createElement("a","lh-report-icon lh-report-icon--open");z.setAttribute("role","menuitem"),z.setAttribute("tabindex","-1"),z.setAttribute("href","#"),z.setAttribute("data-i18n","dropdownViewer"),z.setAttribute("data-action","open-viewer");let j=e.createElement("a","lh-report-icon lh-report-icon--open");j.setAttribute("role","menuitem"),j.setAttribute("tabindex","-1"),j.setAttribute("href","#"),j.setAttribute("data-i18n","dropdownSaveGist"),j.setAttribute("data-action","save-gist");let F=e.createElement("a","lh-report-icon lh-report-icon--open lh-hidden");F.setAttribute("role","menuitem"),F.setAttribute("tabindex","-1"),F.setAttribute("href","#"),F.setAttribute("data-i18n","dropdownViewUnthrottledTrace"),F.setAttribute("data-action","view-unthrottled-trace");let Z=e.createElement("a","lh-report-icon lh-report-icon--dark");return Z.setAttribute("role","menuitem"),Z.setAttribute("tabindex","-1"),Z.setAttribute("href","#"),Z.setAttribute("data-i18n","dropdownDarkTheme"),Z.setAttribute("data-action","toggle-dark"),S.append(" ",T," ",b," ",C," "," ",x," ",D," ",z," ",j," "," ",F," ",Z," "),c.append(" ",l," ",f," ",S," "),a.append(" "," ",i," ",p," ",c," "),t.append(a),t}function To(e){let t=e.createFragment(),n=e.createElement("div","lh-warnings lh-warnings--toplevel"),a=e.createElement("p","lh-warnings__msg"),i=e.createElement("ul");return n.append(" ",a," ",i," "),t.append(n),t}function Pa(e,t){switch(t){case"3pFilter":return so(e);case"audit":return lo(e);case"categoryHeader":return po(e);case"chevron":return uo(e);case"clump":return co(e);case"crc":return mo(e);case"crcChain":return ho(e);case"elementScreenshot":return go(e);case"explodeyGauge":return fo(e);case"footer":return vo(e);case"fraction":return bo(e);case"gauge":return yo(e);case"gaugePwa":return _o(e);case"heading":return wo(e);case"metric":return Co(e);case"scorescale":return xo(e);case"scoresWrapper":return So(e);case"snippet":return ko(e);case"snippetContent":return Ao(e);case"snippetHeader":return Po(e);case"snippetLine":return Eo(e);case"styles":return Lo(e);case"topbar":return Uo(e);case"warningsToplevel":return To(e)}throw new Error("unexpected component: "+t)}var se=class{constructor(t,n){this._document=t,this._lighthouseChannel="unknown",this._componentCache=new Map,this.rootEl=n}createElement(t,n){let a=this._document.createElement(t);if(n)for(let i of n.split(/\s+/))i&&a.classList.add(i);return a}createElementNS(t,n,a){let i=this._document.createElementNS(t,n);if(a)for(let o of a.split(/\s+/))o&&i.classList.add(o);return i}createSVGElement(t,n){return this._document.createElementNS("http://www.w3.org/2000/svg",t,n)}createFragment(){return this._document.createDocumentFragment()}createTextNode(t){return this._document.createTextNode(t)}createChildOf(t,n,a){let i=this.createElement(n,a);return t.append(i),i}createComponent(t){let n=this._componentCache.get(t);if(n){let i=n.cloneNode(!0);return this.findAll("style",i).forEach(o=>o.remove()),i}return n=Pa(this,t),this._componentCache.set(t,n),n.cloneNode(!0)}clearComponentCache(){this._componentCache.clear()}convertMarkdownLinkSnippets(t,n={}){let a=this.createElement("span");for(let i of R.splitMarkdownLink(t)){let o=i.text.includes("`")?this.convertMarkdownCodeSnippets(i.text):i.text;if(!i.isLink){a.append(o);continue}let r=new URL(i.linkHref);(["https://developers.google.com","https://web.dev","https://developer.chrome.com"].includes(r.origin)||n.alwaysAppendUtmSource)&&(r.searchParams.set("utm_source","lighthouse"),r.searchParams.set("utm_medium",this._lighthouseChannel));let p=this.createElement("a");p.rel="noopener",p.target="_blank",p.append(o),this.safelySetHref(p,r.href),a.append(p)}return a}safelySetHref(t,n){if(n=n||"",n.startsWith("#")){t.href=n;return}let a=["https:","http:"],i;try{i=new URL(n)}catch{}i&&a.includes(i.protocol)&&(t.href=i.href)}safelySetBlobHref(t,n){if(n.type!=="text/html"&&n.type!=="application/json")throw new Error("Unsupported blob type");let a=URL.createObjectURL(n);t.href=a}convertMarkdownCodeSnippets(t){let n=this.createElement("span");for(let a of R.splitMarkdownCodeSpans(t))if(a.isCode){let i=this.createElement("code");i.textContent=a.text,n.append(i)}else n.append(this._document.createTextNode(a.text));return n}setLighthouseChannel(t){this._lighthouseChannel=t}document(){return this._document}isDevTools(){return!!this._document.querySelector(".lh-devtools")}find(t,n){let a=this.maybeFind(t,n);if(a===null)throw new Error(`query ${t} not found`);return a}maybeFind(t,n){return n.querySelector(t)}findAll(t,n){return Array.from(n.querySelectorAll(t))}fireEventOn(t,n=this._document,a){let i=new CustomEvent(t,a?{detail:a}:void 0);n.dispatchEvent(i)}saveFile(t,n){let a=this.createElement("a");a.download=n,this.safelySetBlobHref(a,t),this._document.body.append(a),a.click(),this._document.body.removeChild(a),setTimeout(()=>URL.revokeObjectURL(a.href),500)}};var Y=class{constructor(t,n){this.dom=t,this.detailsRenderer=n}get _clumpTitles(){return{warning:v.strings.warningAuditsGroupTitle,manual:v.strings.manualAuditsGroupTitle,passed:v.strings.passedAuditsGroupTitle,notApplicable:v.strings.notApplicableAuditsGroupTitle}}renderAudit(t){let n=v.strings,a=this.dom.createComponent("audit"),i=this.dom.find("div.lh-audit",a);i.id=t.result.id;let o=t.result.scoreDisplayMode;t.result.displayValue&&(this.dom.find(".lh-audit__display-text",i).textContent=t.result.displayValue);let r=this.dom.find(".lh-audit__title",i);r.append(this.dom.convertMarkdownCodeSnippets(t.result.title));let s=this.dom.find(".lh-audit__description",i);s.append(this.dom.convertMarkdownLinkSnippets(t.result.description));for(let d of t.relevantMetrics||[]){let h=this.dom.createChildOf(s,"span","lh-audit__adorn");h.title=`Relevant to ${d.result.title}`,h.textContent=d.acronym||d.id}t.stackPacks&&t.stackPacks.forEach(d=>{let h=this.dom.createElement("img","lh-audit__stackpack__img");h.src=d.iconDataURL,h.alt=d.title;let g=this.dom.convertMarkdownLinkSnippets(d.description,{alwaysAppendUtmSource:!0}),y=this.dom.createElement("div","lh-audit__stackpack");y.append(h,g),this.dom.find(".lh-audit__stackpacks",i).append(y)});let p=this.dom.find("details",i);if(t.result.details){let d=this.detailsRenderer.render(t.result.details);d&&(d.classList.add("lh-details"),p.append(d))}if(this.dom.find(".lh-chevron-container",i).append(this._createChevron()),this._setRatingClass(i,t.result.score,o),t.result.scoreDisplayMode==="error"){i.classList.add("lh-audit--error");let d=this.dom.find(".lh-audit__display-text",i);d.textContent=n.errorLabel,d.classList.add("lh-tooltip-boundary");let h=this.dom.createChildOf(d,"div","lh-tooltip lh-tooltip--error");h.textContent=t.result.errorMessage||n.errorMissingAuditInfo}else if(t.result.explanation){let d=this.dom.createChildOf(r,"div","lh-audit-explanation");d.textContent=t.result.explanation}let c=t.result.warnings;if(!c||c.length===0)return i;let l=this.dom.find("summary",p),m=this.dom.createChildOf(l,"div","lh-warnings");if(this.dom.createChildOf(m,"span").textContent=n.warningHeader,c.length===1)m.append(this.dom.createTextNode(c.join("")));else{let d=this.dom.createChildOf(m,"ul");for(let h of c){let g=this.dom.createChildOf(d,"li");g.textContent=h}}return i}injectFinalScreenshot(t,n,a){let i=n["final-screenshot"];if(!i||i.scoreDisplayMode==="error"||!i.details||i.details.type!=="screenshot")return null;let o=this.dom.createElement("img","lh-final-ss-image"),r=i.details.data;o.src=r,o.alt=i.title;let s=this.dom.find(".lh-category .lh-category-header",t),p=this.dom.createElement("div","lh-category-headercol"),c=this.dom.createElement("div","lh-category-headercol lh-category-headercol--separator"),l=this.dom.createElement("div","lh-category-headercol");p.append(...s.childNodes),p.append(a),l.append(o),s.append(p,c,l),s.classList.add("lh-category-header__finalscreenshot")}_createChevron(){let t=this.dom.createComponent("chevron");return this.dom.find("svg.lh-chevron",t)}_setRatingClass(t,n,a){let i=E.calculateRating(n,a);return t.classList.add(`lh-audit--${a.toLowerCase()}`),a!=="informative"&&t.classList.add(`lh-audit--${i}`),t}renderCategoryHeader(t,n,a){let i=this.dom.createComponent("categoryHeader"),o=this.dom.find(".lh-score__gauge",i),r=this.renderCategoryScore(t,n,a);if(o.append(r),t.description){let s=this.dom.convertMarkdownLinkSnippets(t.description);this.dom.find(".lh-category-header__description",i).append(s)}return i}renderAuditGroup(t){let n=this.dom.createElement("div","lh-audit-group"),a=this.dom.createElement("div","lh-audit-group__header");this.dom.createChildOf(a,"span","lh-audit-group__title").textContent=t.title,n.append(a);let i=null;return t.description&&(i=this.dom.convertMarkdownLinkSnippets(t.description),i.classList.add("lh-audit-group__description","lh-audit-group__footer"),n.append(i)),[n,i]}_renderGroupedAudits(t,n){let a=new Map,i="NotAGroup";a.set(i,[]);for(let r of t){let s=r.group||i;if(s==="hidden")continue;let p=a.get(s)||[];p.push(r),a.set(s,p)}let o=[];for(let[r,s]of a){if(r===i){for(let m of s)o.push(this.renderAudit(m));continue}let p=n[r],[c,l]=this.renderAuditGroup(p);for(let m of s)c.insertBefore(this.renderAudit(m),l);c.classList.add(`lh-audit-group--${r}`),o.push(c)}return o}renderUnexpandableClump(t,n){let a=this.dom.createElement("div");return this._renderGroupedAudits(t,n).forEach(o=>a.append(o)),a}renderClump(t,{auditRefsOrEls:n,description:a,openByDefault:i}){let o=this.dom.createComponent("clump"),r=this.dom.find(".lh-clump",o);i&&r.setAttribute("open","");let s=this.dom.find(".lh-audit-group__header",r),p=this._clumpTitles[t];this.dom.find(".lh-audit-group__title",s).textContent=p;let c=this.dom.find(".lh-audit-group__itemcount",r);c.textContent=`(${n.length})`;let l=n.map(d=>d instanceof HTMLElement?d:this.renderAudit(d));r.append(...l);let m=this.dom.find(".lh-audit-group",o);if(a){let d=this.dom.convertMarkdownLinkSnippets(a);d.classList.add("lh-audit-group__description","lh-audit-group__footer"),m.append(d)}return this.dom.find(".lh-clump-toggletext--show",m).textContent=v.strings.show,this.dom.find(".lh-clump-toggletext--hide",m).textContent=v.strings.hide,r.classList.add(`lh-clump--${t.toLowerCase()}`),m}renderCategoryScore(t,n,a){let i;if(a&&E.shouldDisplayAsFraction(a.gatherMode)?i=this.renderCategoryFraction(t):i=this.renderScoreGauge(t,n),a?.omitLabel&&this.dom.find(".lh-gauge__label,.lh-fraction__label",i).remove(),a?.onPageAnchorRendered){let o=this.dom.find("a",i);a.onPageAnchorRendered(o)}return i}renderScoreGauge(t,n){let a=this.dom.createComponent("gauge"),i=this.dom.find("a.lh-gauge__wrapper",a);E.isPluginCategory(t.id)&&i.classList.add("lh-gauge__wrapper--plugin");let o=Number(t.score),r=this.dom.find(".lh-gauge",a),s=this.dom.find("circle.lh-gauge-arc",r);s&&this._setGaugeArc(s,o);let p=Math.round(o*100),c=this.dom.find("div.lh-gauge__percentage",a);return c.textContent=p.toString(),t.score===null&&(c.classList.add("lh-gauge--error"),c.textContent="",c.title=v.strings.errorLabel),t.auditRefs.length===0||this.hasApplicableAudits(t)?i.classList.add(`lh-gauge__wrapper--${E.calculateRating(t.score)}`):(i.classList.add("lh-gauge__wrapper--not-applicable"),c.textContent="-",c.title=v.strings.notApplicableAuditsGroupTitle),this.dom.find(".lh-gauge__label",a).textContent=t.title,a}renderCategoryFraction(t){let n=this.dom.createComponent("fraction"),a=this.dom.find("a.lh-fraction__wrapper",n),{numPassed:i,numPassableAudits:o,totalWeight:r}=E.calculateCategoryFraction(t),s=i/o,p=this.dom.find(".lh-fraction__content",n),c=this.dom.createElement("span");c.textContent=`${i}/${o}`,p.append(c);let l=E.calculateRating(s);return r===0&&(l="null"),a.classList.add(`lh-fraction__wrapper--${l}`),this.dom.find(".lh-fraction__label",n).textContent=t.title,n}hasApplicableAudits(t){return t.auditRefs.some(n=>n.result.scoreDisplayMode!=="notApplicable")}_setGaugeArc(t,n){let a=2*Math.PI*Number(t.getAttribute("r")),i=Number(t.getAttribute("stroke-width")),o=.25*i/a;t.style.transform=`rotate(${-90+o*360}deg)`;let r=n*a-i/2;n===0&&(t.style.opacity="0"),n===1&&(r=a),t.style.strokeDasharray=`${Math.max(r,0)} ${a}`}_auditHasWarning(t){return!!t.result.warnings?.length}_getClumpIdForAuditRef(t){let n=t.result.scoreDisplayMode;return n==="manual"||n==="notApplicable"?n:E.showAsPassed(t.result)?this._auditHasWarning(t)?"warning":"passed":"failed"}render(t,n={},a){let i=this.dom.createElement("div","lh-category");i.id=t.id,i.append(this.renderCategoryHeader(t,n,a));let o=new Map;o.set("failed",[]),o.set("warning",[]),o.set("manual",[]),o.set("passed",[]),o.set("notApplicable",[]);for(let s of t.auditRefs){let p=this._getClumpIdForAuditRef(s),c=o.get(p);c.push(s),o.set(p,c)}for(let s of o.values())s.sort((p,c)=>c.weight-p.weight);let r=o.get("failed")?.length;for(let[s,p]of o){if(p.length===0)continue;if(s==="failed"){let d=this.renderUnexpandableClump(p,n);d.classList.add("lh-clump--failed"),i.append(d);continue}let c=s==="manual"?t.manualDescription:void 0,l=s==="warning"||s==="manual"&&r===0,m=this.renderClump(s,{auditRefsOrEls:p,description:c,openByDefault:l});i.append(m)}return i}};var ze=class{static initTree(t){let n=0,a=Object.keys(t);return a.length>0&&(n=t[a[0]].request.startTime),{tree:t,startTime:n,transferSize:0}}static createSegment(t,n,a,i,o,r){let s=t[n],p=Object.keys(t),c=p.indexOf(n)===p.length-1,l=!!s.children&&Object.keys(s.children).length>0,m=Array.isArray(o)?o.slice(0):[];return typeof r<"u"&&m.push(!r),{node:s,isLastChild:c,hasChildren:l,startTime:a,transferSize:i+s.request.transferSize,treeMarkers:m}}static createChainNode(t,n,a){let i=t.createComponent("crcChain");t.find(".lh-crc-node",i).setAttribute("title",n.node.request.url);let o=t.find(".lh-crc-node__tree-marker",i);n.treeMarkers.forEach(m=>{let d=m?"lh-tree-marker lh-vert":"lh-tree-marker";o.append(t.createElement("span",d),t.createElement("span","lh-tree-marker"))});let r=n.isLastChild?"lh-tree-marker lh-up-right":"lh-tree-marker lh-vert-right",s=n.hasChildren?"lh-tree-marker lh-horiz-down":"lh-tree-marker lh-right";o.append(t.createElement("span",r),t.createElement("span","lh-tree-marker lh-right"),t.createElement("span",s));let p=n.node.request.url,c=a.renderTextURL(p),l=t.find(".lh-crc-node__tree-value",i);if(l.append(c),!n.hasChildren){let{startTime:m,endTime:d,transferSize:h}=n.node.request,g=t.createElement("span","lh-crc-node__chain-duration");g.textContent=" - "+v.i18n.formatMilliseconds((d-m)*1e3)+", ";let y=t.createElement("span","lh-crc-node__chain-duration");y.textContent=v.i18n.formatBytesToKiB(h,.01),l.append(g,y)}return i}static buildTree(t,n,a,i,o,r){if(i.append(_e.createChainNode(t,a,r)),a.node.children)for(let s of Object.keys(a.node.children)){let p=_e.createSegment(a.node.children,s,a.startTime,a.transferSize,a.treeMarkers,a.isLastChild);_e.buildTree(t,n,p,i,o,r)}}static render(t,n,a){let i=t.createComponent("crc"),o=t.find(".lh-crc",i);t.find(".lh-crc-initial-nav",i).textContent=v.strings.crcInitialNavigation,t.find(".lh-crc__longest_duration_label",i).textContent=v.strings.crcLongestDurationLabel,t.find(".lh-crc__longest_duration",i).textContent=v.i18n.formatMilliseconds(n.longestChain.duration);let r=_e.initTree(n.chains);for(let s of Object.keys(r.tree)){let p=_e.createSegment(r.tree,s,r.startTime,r.transferSize);_e.buildTree(t,i,p,o,n,a)}return t.find(".lh-crc-container",i)}},_e=ze;function Io(e,t){return t.left<=e.width&&0<=t.right&&t.top<=e.height&&0<=t.bottom}function Ea(e,t,n){return e<t?t:e>n?n:e}function Ro(e){return{x:e.left+e.width/2,y:e.top+e.height/2}}var le=class e{static getScreenshotPositions(t,n,a){let i=Ro(t),o=Ea(i.x-n.width/2,0,a.width-n.width),r=Ea(i.y-n.height/2,0,a.height-n.height);return{screenshot:{left:o,top:r},clip:{left:t.left-o,top:t.top-r}}}static renderClipPathInScreenshot(t,n,a,i,o){let r=t.find("clipPath",n),s=`clip-${v.getUniqueSuffix()}`;r.id=s,n.style.clipPath=`url(#${s})`;let p=a.top/o.height,c=p+i.height/o.height,l=a.left/o.width,m=l+i.width/o.width,d=[`0,0 1,0 1,${p} 0,${p}`,`0,${c} 1,${c} 1,1 0,1`,`0,${p} ${l},${p} ${l},${c} 0,${c}`,`${m},${p} 1,${p} 1,${c} ${m},${c}`];for(let h of d){let g=t.createElementNS("http://www.w3.org/2000/svg","polygon");g.setAttribute("points",h),r.append(g)}}static installFullPageScreenshot(t,n){t.style.setProperty("--element-screenshot-url",`url('${n.data}')`)}static installOverlayFeature(t){let{dom:n,rootEl:a,overlayContainerEl:i,fullPageScreenshot:o}=t,r="lh-screenshot-overlay--enabled";a.classList.contains(r)||(a.classList.add(r),a.addEventListener("click",s=>{let p=s.target;if(!p)return;let c=p.closest(".lh-node > .lh-element-screenshot");if(!c)return;let l=n.createElement("div","lh-element-screenshot__overlay");i.append(l);let m={width:l.clientWidth*.95,height:l.clientHeight*.8},d={width:Number(c.dataset.rectWidth),height:Number(c.dataset.rectHeight),left:Number(c.dataset.rectLeft),right:Number(c.dataset.rectLeft)+Number(c.dataset.rectWidth),top:Number(c.dataset.rectTop),bottom:Number(c.dataset.rectTop)+Number(c.dataset.rectHeight)},h=e.render(n,o.screenshot,d,m);if(!h){l.remove();return}l.append(h),l.addEventListener("click",()=>l.remove())}))}static _computeZoomFactor(t,n){let i={x:n.width/t.width,y:n.height/t.height},o=.75*Math.min(i.x,i.y);return Math.min(1,o)}static render(t,n,a,i){if(!Io(n,a))return null;let o=t.createComponent("elementScreenshot"),r=t.find("div.lh-element-screenshot",o);r.dataset.rectWidth=a.width.toString(),r.dataset.rectHeight=a.height.toString(),r.dataset.rectLeft=a.left.toString(),r.dataset.rectTop=a.top.toString();let s=this._computeZoomFactor(a,i),p={width:i.width/s,height:i.height/s};p.width=Math.min(n.width,p.width),p.height=Math.min(n.height,p.height);let c={width:p.width*s,height:p.height*s},l=e.getScreenshotPositions(a,p,{width:n.width,height:n.height}),m=t.find("div.lh-element-screenshot__image",r);m.style.width=c.width+"px",m.style.height=c.height+"px",m.style.backgroundPositionY=-(l.screenshot.top*s)+"px",m.style.backgroundPositionX=-(l.screenshot.left*s)+"px",m.style.backgroundSize=`${n.width*s}px ${n.height*s}px`;let d=t.find("div.lh-element-screenshot__element-marker",r);d.style.width=a.width*s+"px",d.style.height=a.height*s+"px",d.style.left=l.clip.left*s+"px",d.style.top=l.clip.top*s+"px";let h=t.find("div.lh-element-screenshot__mask",r);return h.style.width=c.width+"px",h.style.height=c.height+"px",e.renderClipPathInScreenshot(t,h,l.clip,a,p),r}};var No=["http://","https://","data:"],Do=["bytes","numeric","ms","timespanMs"],we=class{constructor(t,n={}){this._dom=t,this._fullPageScreenshot=n.fullPageScreenshot,this._entities=n.entities}render(t){switch(t.type){case"filmstrip":return this._renderFilmstrip(t);case"list":return this._renderList(t);case"table":case"opportunity":return this._renderTable(t);case"criticalrequestchain":return ze.render(this._dom,t,this);case"screenshot":case"debugdata":case"treemap-data":return null;default:return this._renderUnknown(t.type,t)}}_renderBytes(t){let n=v.i18n.formatBytesToKiB(t.value,t.granularity||.1),a=this._renderText(n);return a.title=v.i18n.formatBytes(t.value),a}_renderMilliseconds(t){let n;return t.displayUnit==="duration"?n=v.i18n.formatDuration(t.value):n=v.i18n.formatMilliseconds(t.value,t.granularity||10),this._renderText(n)}renderTextURL(t){let n=t,a,i,o;try{let s=R.parseURL(n);a=s.file==="/"?s.origin:s.file,i=s.file==="/"||s.hostname===""?"":`(${s.hostname})`,o=n}catch{a=n}let r=this._dom.createElement("div","lh-text__url");if(r.append(this._renderLink({text:a,url:n})),i){let s=this._renderText(i);s.classList.add("lh-text__url-host"),r.append(s)}return o&&(r.title=n,r.dataset.url=n),r}_renderLink(t){let n=this._dom.createElement("a");if(this._dom.safelySetHref(n,t.url),!n.href){let a=this._renderText(t.text);return a.classList.add("lh-link"),a}return n.rel="noopener",n.target="_blank",n.textContent=t.text,n.classList.add("lh-link"),n}_renderText(t){let n=this._dom.createElement("div","lh-text");return n.textContent=t,n}_renderNumeric(t){let n=v.i18n.formatNumber(t.value,t.granularity||.1),a=this._dom.createElement("div","lh-numeric");return a.textContent=n,a}_renderThumbnail(t){let n=this._dom.createElement("img","lh-thumbnail"),a=t;return n.src=a,n.title=a,n.alt="",n}_renderUnknown(t,n){console.error(`Unknown details type: ${t}`,n);let a=this._dom.createElement("details","lh-unknown");return this._dom.createChildOf(a,"summary").textContent=`We don't know how to render audit details of type \`${t}\`. The Lighthouse version that collected this data is likely newer than the Lighthouse version of the report renderer. Expand for the raw JSON.`,this._dom.createChildOf(a,"pre").textContent=JSON.stringify(n,null,2),a}_renderTableValue(t,n){if(t==null)return null;if(typeof t=="object")switch(t.type){case"code":return this._renderCode(t.value);case"link":return this._renderLink(t);case"node":return this.renderNode(t);case"numeric":return this._renderNumeric(t);case"source-location":return this.renderSourceLocation(t);case"url":return this.renderTextURL(t.value);default:return this._renderUnknown(t.type,t)}switch(n.valueType){case"bytes":{let a=Number(t);return this._renderBytes({value:a,granularity:n.granularity})}case"code":{let a=String(t);return this._renderCode(a)}case"ms":{let a={value:Number(t),granularity:n.granularity,displayUnit:n.displayUnit};return this._renderMilliseconds(a)}case"numeric":{let a=Number(t);return this._renderNumeric({value:a,granularity:n.granularity})}case"text":{let a=String(t);return this._renderText(a)}case"thumbnail":{let a=String(t);return this._renderThumbnail(a)}case"timespanMs":{let a=Number(t);return this._renderMilliseconds({value:a})}case"url":{let a=String(t);return No.some(i=>a.startsWith(i))?this.renderTextURL(a):this._renderCode(a)}default:return this._renderUnknown(n.valueType,t)}}_getDerivedSubItemsHeading(t){return t.subItemsHeading?{key:t.subItemsHeading.key||"",valueType:t.subItemsHeading.valueType||t.valueType,granularity:t.subItemsHeading.granularity||t.granularity,displayUnit:t.subItemsHeading.displayUnit||t.displayUnit,label:""}:null}_renderTableRow(t,n){let a=this._dom.createElement("tr");for(let i of n){if(!i||!i.key){this._dom.createChildOf(a,"td","lh-table-column--empty");continue}let o=t[i.key],r;if(o!=null&&(r=this._renderTableValue(o,i)),r){let s=`lh-table-column--${i.valueType}`;this._dom.createChildOf(a,"td",s).append(r)}else this._dom.createChildOf(a,"td","lh-table-column--empty")}return a}_renderTableRowsFromItem(t,n){let a=this._dom.createFragment();if(a.append(this._renderTableRow(t,n)),!t.subItems)return a;let i=n.map(this._getDerivedSubItemsHeading);if(!i.some(Boolean))return a;for(let o of t.subItems.items){let r=this._renderTableRow(o,i);r.classList.add("lh-sub-item-row"),a.append(r)}return a}_adornEntityGroupRow(t){let n=t.dataset.entity;if(!n)return;let a=this._entities?.find(o=>o.name===n);if(!a)return;let i=this._dom.find("td",t);if(a.category){let o=this._dom.createElement("span");o.classList.add("lh-audit__adorn"),o.textContent=a.category,i.append(" ",o)}if(a.isFirstParty){let o=this._dom.createElement("span");o.classList.add("lh-audit__adorn","lh-audit__adorn1p"),o.textContent=v.strings.firstPartyChipLabel,i.append(" ",o)}if(a.homepage){let o=this._dom.createElement("a");o.href=a.homepage,o.target="_blank",o.title=v.strings.openInANewTabTooltip,o.classList.add("lh-report-icon--external"),i.append(" ",o)}}_renderEntityGroupRow(t,n){let a={...n[0]};a.valueType="text";let i=[a,...n.slice(1)],o=this._dom.createFragment();return o.append(this._renderTableRow(t,i)),this._dom.find("tr",o).classList.add("lh-row--group"),o}_getEntityGroupItems(t){let{items:n,headings:a,sortedBy:i}=t;if(!n.length||t.isEntityGrouped||!n.some(l=>l.entity))return[];let o=new Set(t.skipSumming||[]),r=[];for(let l of a)!l.key||o.has(l.key)||Do.includes(l.valueType)&&r.push(l.key);let s=a[0].key;if(!s)return[];let p=new Map;for(let l of n){let m=typeof l.entity=="string"?l.entity:void 0,d=p.get(m)||{[s]:m||v.strings.unattributable,entity:m};for(let h of r)d[h]=Number(d[h]||0)+Number(l[h]||0);p.set(m,d)}let c=[...p.values()];return i&&c.sort(E.getTableItemSortComparator(i)),c}_renderTable(t){if(!t.items.length)return this._dom.createElement("span");let n=this._dom.createElement("table","lh-table"),a=this._dom.createChildOf(n,"thead"),i=this._dom.createChildOf(a,"tr");for(let s of t.headings){let c=`lh-table-column--${s.valueType||"text"}`,l=this._dom.createElement("div","lh-text");l.textContent=s.label,this._dom.createChildOf(i,"th",c).append(l)}let o=this._getEntityGroupItems(t),r=this._dom.createChildOf(n,"tbody");if(o.length)for(let s of o){let p=typeof s.entity=="string"?s.entity:void 0,c=this._renderEntityGroupRow(s,t.headings);for(let m of t.items.filter(d=>d.entity===p))c.append(this._renderTableRowsFromItem(m,t.headings));let l=this._dom.findAll("tr",c);p&&l.length&&(l.forEach(m=>m.dataset.entity=p),this._adornEntityGroupRow(l[0])),r.append(c)}else{let s=!0;for(let p of t.items){let c=this._renderTableRowsFromItem(p,t.headings),l=this._dom.findAll("tr",c),m=l[0];if(typeof p.entity=="string"&&(m.dataset.entity=p.entity),t.isEntityGrouped&&p.entity)m.classList.add("lh-row--group"),this._adornEntityGroupRow(m);else for(let d of l)d.classList.add(s?"lh-row--even":"lh-row--odd");s=!s,r.append(c)}}return n}_renderList(t){let n=this._dom.createElement("div","lh-list");return t.items.forEach(a=>{let i=this.render(a);i&&n.append(i)}),n}renderNode(t){let n=this._dom.createElement("span","lh-node");if(t.nodeLabel){let r=this._dom.createElement("div");r.textContent=t.nodeLabel,n.append(r)}if(t.snippet){let r=this._dom.createElement("div");r.classList.add("lh-node__snippet"),r.textContent=t.snippet,n.append(r)}if(t.selector&&(n.title=t.selector),t.path&&n.setAttribute("data-path",t.path),t.selector&&n.setAttribute("data-selector",t.selector),t.snippet&&n.setAttribute("data-snippet",t.snippet),!this._fullPageScreenshot)return n;let a=t.lhId&&this._fullPageScreenshot.nodes[t.lhId];if(!a||a.width===0||a.height===0)return n;let i={width:147,height:100},o=le.render(this._dom,this._fullPageScreenshot.screenshot,a,i);return o&&n.prepend(o),n}renderSourceLocation(t){if(!t.url)return null;let n=`${t.url}:${t.line+1}:${t.column}`,a;t.original&&(a=`${t.original.file||"<unmapped>"}:${t.original.line+1}:${t.original.column}`);let i;if(t.urlProvider==="network"&&a)i=this._renderLink({url:t.url,text:a}),i.title=`maps to generated location ${n}`;else if(t.urlProvider==="network"&&!a)i=this.renderTextURL(t.url),this._dom.find(".lh-link",i).textContent+=`:${t.line+1}:${t.column}`;else if(t.urlProvider==="comment"&&a)i=this._renderText(`${a} (from source map)`),i.title=`${n} (from sourceURL)`;else if(t.urlProvider==="comment"&&!a)i=this._renderText(`${n} (from sourceURL)`);else return null;return i.classList.add("lh-source-location"),i.setAttribute("data-source-url",t.url),i.setAttribute("data-source-line",String(t.line)),i.setAttribute("data-source-column",String(t.column)),i}_renderFilmstrip(t){let n=this._dom.createElement("div","lh-filmstrip");for(let a of t.items){let i=this._dom.createChildOf(n,"div","lh-filmstrip__frame"),o=this._dom.createChildOf(i,"img","lh-filmstrip__thumbnail");o.src=a.data,o.alt="Screenshot"}return n}_renderCode(t){let n=this._dom.createElement("pre","lh-code");return n.textContent=t,n}};function La(e){let t=e.createComponent("explodeyGauge");return e.find(".lh-exp-gauge-component",t)}function Ua(e,t,n){let a=e.find("div.lh-exp-gauge__wrapper",t);a.className="",a.classList.add("lh-exp-gauge__wrapper",`lh-exp-gauge__wrapper--${E.calculateRating(n.score)}`),jo(e,a,n)}function zo(e,t,n){n=n||e/32;let a=e/n,i=.5*n,o=a+i+n,r=2*Math.PI*a,s=Math.acos(1-.5*Math.pow(.5*n/a,2))*a,p=2*Math.PI*o,c=Math.acos(1-.5*Math.pow(.5*n/o,2))*o;return{radiusInner:a,radiusOuter:o,circumferenceInner:r,circumferenceOuter:p,getArcLength:()=>Math.max(0,Number(t*r)),getMetricArcLength:(l,m=!1)=>{let d=m?0:2*c;return Math.max(0,Number(l*p-i-d))},endDiffInner:s,endDiffOuter:c,strokeWidth:n,strokeGap:i}}function jo(e,t,n){let o=Number(n.score),{radiusInner:r,radiusOuter:s,circumferenceInner:p,circumferenceOuter:c,getArcLength:l,getMetricArcLength:m,endDiffInner:d,endDiffOuter:h,strokeWidth:g,strokeGap:y}=zo(128,o),f=e.find("svg.lh-exp-gauge",t);e.find(".lh-exp-gauge__label",f).textContent=n.title,f.setAttribute("viewBox",[-64,-64/2,128,128/2].join(" ")),f.style.setProperty("--stroke-width",`${g}px`),f.style.setProperty("--circle-meas",(2*Math.PI).toFixed(4));let _=e.find("g.lh-exp-gauge__outer",t),A=e.find("g.lh-exp-gauge__inner",t),P=e.find("circle.lh-cover",_),S=e.find("circle.lh-exp-gauge__arc",A),T=e.find("text.lh-exp-gauge__percentage",A);_.style.setProperty("--scale-initial",String(r/s)),_.style.setProperty("--radius",`${s}px`),P.style.setProperty("--radius",`${.5*(r+s)}px`),P.setAttribute("stroke-width",String(y)),f.style.setProperty("--radius",`${r}px`),S.setAttribute("stroke-dasharray",`${l()} ${(p-l()).toFixed(4)}`),S.setAttribute("stroke-dashoffset",String(.25*p-d)),T.textContent=Math.round(o*100).toString();let b=s+g,C=s-g,x=n.auditRefs.filter(U=>U.group==="metrics"&&U.weight),D=x.reduce((U,M)=>U+=M.weight,0),z=.25*c-h-.5*y,j=-.5*Math.PI;_.querySelectorAll(".metric").forEach(U=>{x.map(G=>`metric--${G.id}`).find(G=>U.classList.contains(G))||U.remove()}),x.forEach((U,M)=>{let O=U.acronym??U.id,G=!_.querySelector(`.metric--${O}`),$=e.maybeFind(`g.metric--${O}`,_)||e.createSVGElement("g"),de=e.maybeFind(`.metric--${O} circle.lh-exp-gauge--faded`,_)||e.createSVGElement("circle"),xe=e.maybeFind(`.metric--${O} circle.lh-exp-gauge--miniarc`,_)||e.createSVGElement("circle"),me=e.maybeFind(`.metric--${O} circle.lh-exp-gauge-hovertarget`,_)||e.createSVGElement("circle"),K=e.maybeFind(`.metric--${O} text.metric__label`,_)||e.createSVGElement("text"),Q=e.maybeFind(`.metric--${O} text.metric__value`,_)||e.createSVGElement("text");$.classList.add("metric",`metric--${O}`),de.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge--faded"),xe.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge--miniarc"),me.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge-hovertarget");let he=U.weight/D,Xt=m(he),Yt=U.result.score?U.result.score*he:0,Qt=m(Yt),ni=he*c,en=m(he,!0),tn=E.calculateRating(U.result.score,U.result.scoreDisplayMode);$.style.setProperty("--metric-rating",tn),$.style.setProperty("--metric-color",`var(--color-${tn})`),$.style.setProperty("--metric-offset",`${z}`),$.style.setProperty("--i",M.toString()),de.setAttribute("stroke-dasharray",`${Xt} ${c-Xt}`),xe.style.setProperty("--metric-array",`${Qt} ${c-Qt}`),me.setAttribute("stroke-dasharray",`${en} ${c-en-h}`),K.classList.add("metric__label"),Q.classList.add("metric__value"),K.textContent=O,Q.textContent=`+${Math.round(Yt*100)}`;let nn=j+he*Math.PI,Se=Math.cos(nn),ke=Math.sin(nn);switch(!0){case Se>0:Q.setAttribute("text-anchor","end");break;case Se<0:K.setAttribute("text-anchor","end");break;case Se===0:K.setAttribute("text-anchor","middle"),Q.setAttribute("text-anchor","middle");break}switch(!0){case ke>0:K.setAttribute("dominant-baseline","hanging");break;case ke<0:Q.setAttribute("dominant-baseline","hanging");break;case ke===0:K.setAttribute("dominant-baseline","middle"),Q.setAttribute("dominant-baseline","middle");break}K.setAttribute("x",(b*Se).toFixed(2)),K.setAttribute("y",(b*ke).toFixed(2)),Q.setAttribute("x",(C*Se).toFixed(2)),Q.setAttribute("y",(C*ke).toFixed(2)),G&&($.appendChild(de),$.appendChild(xe),$.appendChild(me),$.appendChild(K),$.appendChild(Q),_.appendChild($)),z-=ni,j+=he*2*Math.PI});let F=_.querySelector(".lh-exp-gauge-underhovertarget")||e.createSVGElement("circle");F.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge-hovertarget","lh-exp-gauge-underhovertarget");let Z=m(1,!0);if(F.setAttribute("stroke-dasharray",`${Z} ${c-Z-h}`),F.isConnected||_.prepend(F),f.dataset.listenersSetup)return;f.dataset.listenersSetup=!0,je(f),f.addEventListener("pointerover",U=>{if(U.target===f&&f.classList.contains("state--expanded")){f.classList.remove("state--expanded"),f.classList.contains("state--highlight")&&(f.classList.remove("state--highlight"),e.find(".metric--highlight",f).classList.remove("metric--highlight"));return}if(!(U.target instanceof Element))return;let M=U.target.parentNode;if(M instanceof SVGElement){if(M&&M===A){f.classList.contains("state--expanded")?f.classList.contains("state--highlight")&&(f.classList.remove("state--highlight"),e.find(".metric--highlight",f).classList.remove("metric--highlight")):f.classList.add("state--expanded");return}if(M&&M.classList&&M.classList.contains("metric")){let O=M.style.getPropertyValue("--metric-rating");if(t.style.setProperty("--color-highlight",`var(--color-${O}-secondary)`),!f.classList.contains("state--highlight"))f.classList.add("state--highlight"),M.classList.add("metric--highlight");else{let G=e.find(".metric--highlight",f);M!==G&&(G.classList.remove("metric--highlight"),M.classList.add("metric--highlight"))}}}}),f.addEventListener("mouseleave",()=>{f.classList.remove("state--highlight"),f.querySelector(".metric--highlight")?.classList.remove("metric--highlight")});async function je(U){if(await new Promise(K=>setTimeout(K,1e3)),U.classList.contains("state--expanded"))return;let M=e.find(".lh-exp-gauge__inner",U),O=`uniq-${Math.random()}`;M.setAttribute("id",O);let G=e.createSVGElement("use");G.setAttribute("href",`#${O}`),U.appendChild(G);let $=2.5;U.style.setProperty("--peek-dur",`${$}s`),U.classList.add("state--peek","state--expanded");let de=()=>{U.classList.remove("state--peek","state--expanded"),G.remove()},xe=setTimeout(()=>{U.removeEventListener("mouseenter",me),de()},$*1e3*1.5);function me(){clearTimeout(xe),de()}U.addEventListener("mouseenter",me,{once:!0})}}var mt=class extends Y{_renderMetric(t){let n=this.dom.createComponent("metric"),a=this.dom.find(".lh-metric",n);a.id=t.result.id;let i=E.calculateRating(t.result.score,t.result.scoreDisplayMode);a.classList.add(`lh-metric--${i}`);let o=this.dom.find(".lh-metric__title",n);o.textContent=t.result.title;let r=this.dom.find(".lh-metric__value",n);r.textContent=t.result.displayValue||"";let s=this.dom.find(".lh-metric__description",n);if(s.append(this.dom.convertMarkdownLinkSnippets(t.result.description)),t.result.scoreDisplayMode==="error"){s.textContent="",r.textContent="Error!";let p=this.dom.createChildOf(s,"span");p.textContent=t.result.errorMessage||"Report error: no metric information"}else t.result.scoreDisplayMode==="notApplicable"&&(r.textContent="--");return a}_getScoringCalculatorHref(t){let n=t.filter(m=>m.group==="metrics"),a=t.find(m=>m.id==="interactive"),i=t.find(m=>m.id==="first-cpu-idle"),o=t.find(m=>m.id==="first-meaningful-paint");a&&n.push(a),i&&n.push(i),o&&n.push(o);let r=m=>Math.round(m*100)/100,p=[...n.map(m=>{let d;return typeof m.result.numericValue=="number"?(d=m.id==="cumulative-layout-shift"?r(m.result.numericValue):Math.round(m.result.numericValue),d=d.toString()):d="null",[m.acronym||m.id,d]})];v.reportJson&&(p.push(["device",v.reportJson.configSettings.formFactor]),p.push(["version",v.reportJson.lighthouseVersion]));let c=new URLSearchParams(p),l=new URL("https://googlechrome.github.io/lighthouse/scorecalc/");return l.hash=c.toString(),l.href}overallImpact(t,n){if(!t.result.metricSavings)return{overallImpact:0,overallLinearImpact:0};let a=0,i=0;for(let[o,r]of Object.entries(t.result.metricSavings)){if(r===void 0)continue;let s=n.find(h=>h.acronym===o);if(!s||s.result.score===null)continue;let p=s.result.numericValue;if(!p)continue;let c=r/p*s.weight;i+=c;let l=s.result.scoringOptions;if(!l)continue;let d=(R.computeLogNormalScore(l,p-r)-s.result.score)*s.weight;a+=d}return{overallImpact:a,overallLinearImpact:i}}render(t,n,a){let i=v.strings,o=this.dom.createElement("div","lh-category");o.id=t.id,o.append(this.renderCategoryHeader(t,n,a));let r=t.auditRefs.filter(b=>b.group==="metrics");if(r.length){let[b,C]=this.renderAuditGroup(n.metrics),x=this.dom.createElement("input","lh-metrics-toggle__input"),D=`lh-metrics-toggle${v.getUniqueSuffix()}`;x.setAttribute("aria-label","Toggle the display of metric descriptions"),x.type="checkbox",x.id=D,b.prepend(x);let z=this.dom.find(".lh-audit-group__header",b),j=this.dom.createChildOf(z,"label","lh-metrics-toggle__label");j.htmlFor=D;let F=this.dom.createChildOf(j,"span","lh-metrics-toggle__labeltext--show"),Z=this.dom.createChildOf(j,"span","lh-metrics-toggle__labeltext--hide");F.textContent=v.strings.expandView,Z.textContent=v.strings.collapseView;let je=this.dom.createElement("div","lh-metrics-container");if(b.insertBefore(je,C),r.forEach(U=>{je.append(this._renderMetric(U))}),o.querySelector(".lh-gauge__wrapper")){let U=this.dom.find(".lh-category-header__description",o),M=this.dom.createChildOf(U,"div","lh-metrics__disclaimer"),O=this.dom.convertMarkdownLinkSnippets(i.varianceDisclaimer);M.append(O);let G=this.dom.createChildOf(M,"a","lh-calclink");G.target="_blank",G.textContent=i.calculatorLink,this.dom.safelySetHref(G,this._getScoringCalculatorHref(t.auditRefs))}b.classList.add("lh-audit-group--metrics"),o.append(b)}let s=this.dom.createChildOf(o,"div","lh-filmstrip-container"),c=t.auditRefs.find(b=>b.id==="screenshot-thumbnails")?.result;if(c?.details){s.id=c.id;let b=this.detailsRenderer.render(c.details);b&&s.append(b)}let l=t.auditRefs.filter(b=>b.group==="diagnostics").map(b=>{let{overallImpact:C,overallLinearImpact:x}=this.overallImpact(b,r),D=b.result.guidanceLevel||1,z=this.renderAudit(b);return{auditRef:b,auditEl:z,overallImpact:C,overallLinearImpact:x,guidanceLevel:D}}),m=l.filter(b=>!E.showAsPassed(b.auditRef.result)),d=l.filter(b=>E.showAsPassed(b.auditRef.result)),[h,g]=this.renderAuditGroup(n.diagnostics);h.classList.add("lh-audit-group--diagnostics");function y(b){for(let C of l)if(b==="All")C.auditEl.hidden=!1;else{let x=C.auditRef.result.metricSavings?.[b]===void 0;C.auditEl.hidden=x}m.sort((C,x)=>{let D=C.auditRef.result.score||0,z=x.auditRef.result.score||0;if(D!==z)return D-z;if(b!=="All"){let j=C.auditRef.result.metricSavings?.[b]??-1,F=x.auditRef.result.metricSavings?.[b]??-1;if(j!==F)return F-j}return C.overallImpact!==x.overallImpact?x.overallImpact*x.guidanceLevel-C.overallImpact*C.guidanceLevel:C.overallImpact===0&&x.overallImpact===0&&C.overallLinearImpact!==x.overallLinearImpact?x.overallLinearImpact*x.guidanceLevel-C.overallLinearImpact*C.guidanceLevel:x.guidanceLevel-C.guidanceLevel});for(let C of m)h.insertBefore(C.auditEl,g)}let f=new Set;for(let b of m){let C=b.auditRef.result.metricSavings||{};for(let[x,D]of Object.entries(C))typeof D=="number"&&f.add(x)}let _=r.filter(b=>b.acronym&&f.has(b.acronym));if(_.length&&this.renderMetricAuditFilter(_,o,y),y("All"),m.length&&o.append(h),!d.length)return o;let A={auditRefsOrEls:d.map(b=>b.auditEl),groupDefinitions:n},P=this.renderClump("passed",A);o.append(P);let S=[];if(["performance-budget","timing-budget"].forEach(b=>{let C=t.auditRefs.find(x=>x.id===b);if(C?.result.details){let x=this.detailsRenderer.render(C.result.details);x&&(x.id=b,x.classList.add("lh-details","lh-details--budget","lh-audit"),S.push(x))}}),S.length>0){let[b,C]=this.renderAuditGroup(n.budgets);S.forEach(x=>b.insertBefore(x,C)),b.classList.add("lh-audit-group--budgets"),o.append(b)}if((!a||a?.gatherMode==="navigation")&&t.score!==null){let b=La(this.dom);Ua(this.dom,b,t),this.dom.find(".lh-score__gauge",o).replaceWith(b)}return o}renderMetricAuditFilter(t,n,a){let i=this.dom.createElement("div","lh-metricfilter"),o=this.dom.createChildOf(i,"span","lh-metricfilter__text");o.textContent=v.strings.showRelevantAudits;let r=[{acronym:"All",id:"All"},...t],s=v.getUniqueSuffix();for(let p of r){let c=`metric-${p.acronym}-${s}`,l=this.dom.createChildOf(i,"input","lh-metricfilter__radio");l.type="radio",l.name=`metricsfilter-${s}`,l.id=c;let m=this.dom.createChildOf(i,"label","lh-metricfilter__label");m.htmlFor=c,m.title="result"in p?p.result.title:"",m.textContent=p.acronym||p.id,p.acronym==="All"&&(l.checked=!0,m.classList.add("lh-metricfilter__label--active")),n.append(i),l.addEventListener("input",d=>{for(let g of n.querySelectorAll("label.lh-metricfilter__label"))g.classList.toggle("lh-metricfilter__label--active",g.htmlFor===c);n.classList.toggle("lh-category--filtered",p.acronym!=="All"),a(p.acronym||"All");let h=n.querySelectorAll("div.lh-audit-group, details.lh-audit-group");for(let g of h){g.hidden=!1;let y=Array.from(g.querySelectorAll("div.lh-audit")),f=!!y.length&&y.every(_=>_.hidden);g.hidden=f}})}}};var ht=class e extends Y{render(t,n={}){let a=this.dom.createElement("div","lh-category");a.id=t.id;let i=this.dom.createComponent("warningsToplevel");this.dom.find(".lh-warnings__msg",i).append(this.dom.convertMarkdownLinkSnippets(v.strings.pwaRemovalMessage)),a.append(i),a.append(this.renderCategoryHeader(t,n));let r=t.auditRefs,s=r.filter(m=>m.result.scoreDisplayMode!=="manual"),p=this._renderAudits(s,n);a.append(p);let c=r.filter(m=>m.result.scoreDisplayMode==="manual"),l=this.renderClump("manual",{auditRefsOrEls:c,description:t.manualDescription,openByDefault:!0});return a.append(l),a}renderCategoryScore(t,n){if(t.score===null)return super.renderScoreGauge(t,n);let a=this.dom.createComponent("gaugePwa"),i=this.dom.find("a.lh-gauge--pwa__wrapper",a),o=a.querySelector("svg");if(!o)throw new Error("no SVG element found in PWA score gauge template");e._makeSvgReferencesUnique(o);let r=this._getGroupIds(t.auditRefs),s=this._getPassingGroupIds(t.auditRefs);if(s.size===r.size)i.classList.add("lh-badged--all");else for(let p of s)i.classList.add(`lh-badged--${p}`);return this.dom.find(".lh-gauge__label",a).textContent=t.title,i.title=this._getGaugeTooltip(t.auditRefs,n),a}_getGroupIds(t){let n=t.map(a=>a.group).filter(a=>!!a);return new Set(n)}_getPassingGroupIds(t){let n=this._getGroupIds(t);for(let a of t)!E.showAsPassed(a.result)&&a.group&&n.delete(a.group);return n}_getGaugeTooltip(t,n){let a=this._getGroupIds(t),i=[];for(let o of a){let r=t.filter(l=>l.group===o),s=r.length,p=r.filter(l=>E.showAsPassed(l.result)).length,c=n[o].title;i.push(`${c}: ${p}/${s}`)}return i.join(", ")}_renderAudits(t,n){let a=this.renderUnexpandableClump(t,n),i=this._getPassingGroupIds(t);for(let o of i)this.dom.find(`.lh-audit-group--${o}`,a).classList.add("lh-badged");return a}static _makeSvgReferencesUnique(t){let n=t.querySelector("defs");if(!n)return;let a=v.getUniqueSuffix(),i=n.querySelectorAll("[id]");for(let o of i){let r=o.id,s=`${r}-${a}`;o.id=s;let p=t.querySelectorAll(`use[href="#${r}"]`);for(let l of p)l.setAttribute("href",`#${s}`);let c=t.querySelectorAll(`[fill="url(#${r})"]`);for(let l of c)l.setAttribute("fill",`url(#${s})`)}}};var gt=class{constructor(t){this._dom=t,this._opts={}}renderReport(t,n,a){if(!this._dom.rootEl&&n){console.warn("Please adopt the new report API in renderer/api.js.");let o=n.closest(".lh-root");o?this._dom.rootEl=o:(n.classList.add("lh-root","lh-vars"),this._dom.rootEl=n)}else this._dom.rootEl&&n&&(this._dom.rootEl=n);a&&(this._opts=a),this._dom.setLighthouseChannel(t.configSettings.channel||"unknown");let i=E.prepareReportResult(t);return this._dom.rootEl.textContent="",this._dom.rootEl.append(this._renderReport(i)),this._opts.occupyEntireViewport&&this._dom.rootEl.classList.add("lh-max-viewport"),this._dom.rootEl}_renderReportTopbar(t){let n=this._dom.createComponent("topbar"),a=this._dom.find("a.lh-topbar__url",n);return a.textContent=t.finalDisplayedUrl,a.title=t.finalDisplayedUrl,this._dom.safelySetHref(a,t.finalDisplayedUrl),n}_renderReportHeader(){let t=this._dom.createComponent("heading"),n=this._dom.createComponent("scoresWrapper");return this._dom.find(".lh-scores-wrapper-placeholder",t).replaceWith(n),t}_renderReportFooter(t){let n=this._dom.createComponent("footer");return this._renderMetaBlock(t,n),this._dom.find(".lh-footer__version_issue",n).textContent=v.strings.footerIssue,this._dom.find(".lh-footer__version",n).textContent=t.lighthouseVersion,n}_renderMetaBlock(t,n){let a=E.getEmulationDescriptions(t.configSettings||{}),i=t.userAgent.match(/(\w*Chrome\/[\d.]+)/),o=Array.isArray(i)?i[1].replace("/"," ").replace("Chrome","Chromium"):"Chromium",r=t.configSettings.channel,s=t.environment.benchmarkIndex.toFixed(0),p=t.environment.credits?.["axe-core"],c=[`${v.strings.runtimeSettingsBenchmark}: ${s}`,`${v.strings.runtimeSettingsCPUThrottling}: ${a.cpuThrottling}`];a.screenEmulation&&c.push(`${v.strings.runtimeSettingsScreenEmulation}: ${a.screenEmulation}`),p&&c.push(`${v.strings.runtimeSettingsAxeVersion}: ${p}`);let l=v.strings.runtimeAnalysisWindow;t.gatherMode==="timespan"?l=v.strings.runtimeAnalysisWindowTimespan:t.gatherMode==="snapshot"&&(l=v.strings.runtimeAnalysisWindowSnapshot);let m=[["date",`Captured at ${v.i18n.formatDateTime(t.fetchTime)}`],["devices",`${a.deviceEmulation} with Lighthouse ${t.lighthouseVersion}`,c.join(`
2711
2711
  `)],["samples-one",v.strings.runtimeSingleLoad,v.strings.runtimeSingleLoadTooltip],["stopwatch",l],["networkspeed",`${a.summary}`,`${v.strings.runtimeSettingsNetworkThrottling}: ${a.networkThrottling}`],["chrome",`Using ${o}`+(r?` with ${r}`:""),`${v.strings.runtimeSettingsUANetwork}: "${t.environment.networkUserAgent}"`]],d=this._dom.find(".lh-meta__items",n);for(let[h,g,y]of m){let f=this._dom.createChildOf(d,"li","lh-meta__item");if(f.textContent=g,y){f.classList.add("lh-tooltip-boundary");let _=this._dom.createChildOf(f,"div","lh-tooltip");_.textContent=y}f.classList.add("lh-report-icon",`lh-report-icon--${h}`)}}_renderReportWarnings(t){if(!t.runWarnings||t.runWarnings.length===0)return this._dom.createElement("div");let n=this._dom.createComponent("warningsToplevel"),a=this._dom.find(".lh-warnings__msg",n);a.textContent=v.strings.toplevelWarningsMessage;let i=[];for(let o of t.runWarnings){let r=this._dom.createElement("li");r.append(this._dom.convertMarkdownLinkSnippets(o)),i.push(r)}return this._dom.find("ul",n).append(...i),n}_renderScoreGauges(t,n,a){let i=[],o=[],r=[];for(let s of Object.values(t.categories)){let p=a[s.id]||n,c=p.renderCategoryScore(s,t.categoryGroups||{},{gatherMode:t.gatherMode}),l=this._dom.find("a.lh-gauge__wrapper, a.lh-fraction__wrapper",c);l&&(this._dom.safelySetHref(l,`#${s.id}`),l.addEventListener("click",m=>{if(!l.matches('[href^="#"]'))return;let d=l.getAttribute("href"),h=this._dom.rootEl;if(!d||!h)return;let g=this._dom.find(d,h);m.preventDefault(),g.scrollIntoView()}),this._opts.onPageAnchorRendered?.(l)),E.isPluginCategory(s.id)?r.push(c):p.renderCategoryScore===n.renderCategoryScore?i.push(c):o.push(c)}return[...i,...o,...r]}_renderReport(t){v.apply({providedStrings:t.i18n.rendererFormattedStrings,i18n:new ce(t.configSettings.locale),reportJson:t});let n=new we(this._dom,{fullPageScreenshot:t.fullPageScreenshot??void 0,entities:t.entities}),a=new Y(this._dom,n),i={performance:new mt(this._dom,n),pwa:new ht(this._dom,n)},o=this._dom.createElement("div");o.append(this._renderReportHeader());let r=this._dom.createElement("div","lh-container"),s=this._dom.createElement("div","lh-report");s.append(this._renderReportWarnings(t));let p;Object.keys(t.categories).length===1?o.classList.add("lh-header--solo-category"):p=this._dom.createElement("div","lh-scores-header");let l=this._dom.createElement("div");if(l.classList.add("lh-scorescale-wrap"),l.append(this._dom.createComponent("scorescale")),p){let g=this._dom.find(".lh-scores-container",o);p.append(...this._renderScoreGauges(t,a,i)),g.append(p,l);let y=this._dom.createElement("div","lh-sticky-header");y.append(...this._renderScoreGauges(t,a,i)),r.append(y)}let m=this._dom.createElement("div","lh-categories");s.append(m);let d={gatherMode:t.gatherMode};for(let g of Object.values(t.categories)){let y=i[g.id]||a;y.dom.createChildOf(m,"div","lh-category-wrapper").append(y.render(g,t.categoryGroups,d))}a.injectFinalScreenshot(m,t.audits,l);let h=this._dom.createFragment();return this._opts.omitGlobalStyles||h.append(this._dom.createComponent("styles")),this._opts.omitTopbar||h.append(this._renderReportTopbar(t)),h.append(r),s.append(this._renderReportFooter(t)),r.append(o,s),t.fullPageScreenshot&&le.installFullPageScreenshot(this._dom.rootEl,t.fullPageScreenshot.screenshot),h}};function Ce(e,t){let n=e.rootEl;typeof t>"u"?n.classList.toggle("lh-dark"):n.classList.toggle("lh-dark",t)}var Mo=typeof btoa<"u"?btoa:e=>Buffer.from(e).toString("base64"),Fo=typeof atob<"u"?atob:e=>Buffer.from(e,"base64").toString();async function Ho(e,t){let n=new TextEncoder().encode(e);if(t.gzip)if(typeof CompressionStream<"u"){let o=new CompressionStream("gzip"),r=o.writable.getWriter();r.write(n),r.close();let s=await new Response(o.readable).arrayBuffer();n=new Uint8Array(s)}else n=window.pako.gzip(e);let a="",i=5e3;for(let o=0;o<n.length;o+=i)a+=String.fromCharCode(...n.subarray(o,o+i));return Mo(a)}function Bo(e,t){let n=Fo(e),a=Uint8Array.from(n,i=>i.charCodeAt(0));return t.gzip?window.pako.ungzip(a,{to:"string"}):new TextDecoder().decode(a)}var Ta={toBase64:Ho,fromBase64:Bo};function Wt(){let e=window.location.host.endsWith(".vercel.app"),t=new URLSearchParams(window.location.search).has("dev");return e?`https://${window.location.host}/gh-pages`:t?"http://localhost:7333":"https://googlechrome.github.io/lighthouse"}function $t(e){let t=e.generatedTime,n=e.fetchTime||t;return`${e.lighthouseVersion}-${e.finalDisplayedUrl}-${n}`}function Oo(e,t,n){let a=new URL(t).origin;window.addEventListener("message",function o(r){r.origin===a&&i&&r.data.opened&&(i.postMessage(e,a),window.removeEventListener("message",o))});let i=window.open(t,n)}async function Ia(e,t,n){let a=new URL(t),i=!!window.CompressionStream;a.hash=await Ta.toBase64(JSON.stringify(e),{gzip:i}),i&&a.searchParams.set("gzip","1"),window.open(a.toString(),n)}async function Ra(e){let t="viewer-"+$t(e),n=Wt()+"/viewer/";await Ia({lhr:e},n,t)}async function Na(e){let t="viewer-"+$t(e),n=Wt()+"/viewer/";Oo({lhr:e},n,t)}function Da(e){if(!e.audits["script-treemap-data"].details)throw new Error("no script treemap data found");let n={lhr:{mainDocumentUrl:e.mainDocumentUrl,finalUrl:e.finalUrl,finalDisplayedUrl:e.finalDisplayedUrl,audits:{"script-treemap-data":e.audits["script-treemap-data"]},configSettings:{locale:e.configSettings.locale}}},a=Wt()+"/treemap/",i="treemap-"+$t(e);Ia(n,a,i)}var ft=class{constructor(t){this._dom=t,this._toggleEl,this._menuEl,this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onToggleClick=this.onToggleClick.bind(this),this.onToggleKeydown=this.onToggleKeydown.bind(this),this.onMenuFocusOut=this.onMenuFocusOut.bind(this),this.onMenuKeydown=this.onMenuKeydown.bind(this),this._getNextMenuItem=this._getNextMenuItem.bind(this),this._getNextSelectableNode=this._getNextSelectableNode.bind(this),this._getPreviousMenuItem=this._getPreviousMenuItem.bind(this)}setup(t){this._toggleEl=this._dom.find(".lh-topbar button.lh-tools__button",this._dom.rootEl),this._toggleEl.addEventListener("click",this.onToggleClick),this._toggleEl.addEventListener("keydown",this.onToggleKeydown),this._menuEl=this._dom.find(".lh-topbar div.lh-tools__dropdown",this._dom.rootEl),this._menuEl.addEventListener("keydown",this.onMenuKeydown),this._menuEl.addEventListener("click",t)}close(){this._toggleEl.classList.remove("lh-active"),this._toggleEl.setAttribute("aria-expanded","false"),this._menuEl.contains(this._dom.document().activeElement)&&this._toggleEl.focus(),this._menuEl.removeEventListener("focusout",this.onMenuFocusOut),this._dom.document().removeEventListener("keydown",this.onDocumentKeyDown)}open(t){this._toggleEl.classList.contains("lh-active")?t.focus():this._menuEl.addEventListener("transitionend",()=>{t.focus()},{once:!0}),this._toggleEl.classList.add("lh-active"),this._toggleEl.setAttribute("aria-expanded","true"),this._menuEl.addEventListener("focusout",this.onMenuFocusOut),this._dom.document().addEventListener("keydown",this.onDocumentKeyDown)}onToggleClick(t){t.preventDefault(),t.stopImmediatePropagation(),this._toggleEl.classList.contains("lh-active")?this.close():this.open(this._getNextMenuItem())}onToggleKeydown(t){switch(t.code){case"ArrowUp":t.preventDefault(),this.open(this._getPreviousMenuItem());break;case"ArrowDown":case"Enter":case" ":t.preventDefault(),this.open(this._getNextMenuItem());break;default:}}onMenuKeydown(t){let n=t.target;switch(t.code){case"ArrowUp":t.preventDefault(),this._getPreviousMenuItem(n).focus();break;case"ArrowDown":t.preventDefault(),this._getNextMenuItem(n).focus();break;case"Home":t.preventDefault(),this._getNextMenuItem().focus();break;case"End":t.preventDefault(),this._getPreviousMenuItem().focus();break;default:}}onDocumentKeyDown(t){t.keyCode===27&&this.close()}onMenuFocusOut(t){let n=t.relatedTarget;this._menuEl.contains(n)||this.close()}_getNextSelectableNode(t,n){let a=t.filter(o=>!(!(o instanceof HTMLElement)||o.hasAttribute("disabled")||window.getComputedStyle(o).display==="none")),i=n?a.indexOf(n)+1:0;return i>=a.length&&(i=0),a[i]}_getNextMenuItem(t){let n=Array.from(this._menuEl.childNodes);return this._getNextSelectableNode(n,t)}_getPreviousMenuItem(t){let n=Array.from(this._menuEl.childNodes).reverse();return this._getNextSelectableNode(n,t)}};var vt=class{constructor(t,n){this.lhr,this._reportUIFeatures=t,this._dom=n,this._dropDownMenu=new ft(this._dom),this._copyAttempt=!1,this.topbarEl,this.categoriesEl,this.stickyHeaderEl,this.highlightEl,this.onDropDownMenuClick=this.onDropDownMenuClick.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onCopy=this.onCopy.bind(this),this.collapseAllDetails=this.collapseAllDetails.bind(this)}enable(t){this.lhr=t,this._dom.rootEl.addEventListener("keyup",this.onKeyUp),this._dom.document().addEventListener("copy",this.onCopy),this._dropDownMenu.setup(this.onDropDownMenuClick),this._setUpCollapseDetailsAfterPrinting(),this._dom.find(".lh-topbar__logo",this._dom.rootEl).addEventListener("click",()=>Ce(this._dom)),this._setupStickyHeader()}onDropDownMenuClick(t){t.preventDefault();let n=t.target;if(!(!n||!n.hasAttribute("data-action"))){switch(n.getAttribute("data-action")){case"copy":this.onCopyButtonClick();break;case"print-summary":this.collapseAllDetails(),this._print();break;case"print-expanded":this.expandAllDetails(),this._print();break;case"save-json":{let a=JSON.stringify(this.lhr,null,2);this._reportUIFeatures._saveFile(new Blob([a],{type:"application/json"}));break}case"save-html":{let a=this._reportUIFeatures.getReportHtml();try{this._reportUIFeatures._saveFile(new Blob([a],{type:"text/html"}))}catch(i){this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"error",msg:"Could not export as HTML. "+i.message})}break}case"open-viewer":{this._dom.isDevTools()?Ra(this.lhr):Na(this.lhr);break}case"save-gist":{this._reportUIFeatures.saveAsGist();break}case"toggle-dark":{Ce(this._dom);break}case"view-unthrottled-trace":this._reportUIFeatures._opts.onViewTrace?.()}this._dropDownMenu.close()}}onCopy(t){this._copyAttempt&&t.clipboardData&&(t.preventDefault(),t.clipboardData.setData("text/plain",JSON.stringify(this.lhr,null,2)),this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"log",msg:"Report JSON copied to clipboard"})),this._copyAttempt=!1}onCopyButtonClick(){this._dom.fireEventOn("lh-analytics",this._dom.document(),{cmd:"send",fields:{hitType:"event",eventCategory:"report",eventAction:"copy"}});try{this._dom.document().queryCommandSupported("copy")&&(this._copyAttempt=!0,this._dom.document().execCommand("copy")||(this._copyAttempt=!1,this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"warn",msg:"Your browser does not support copy to clipboard."})))}catch(t){this._copyAttempt=!1,this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"log",msg:t.message})}}onKeyUp(t){(t.ctrlKey||t.metaKey)&&t.keyCode===80&&this._dropDownMenu.close()}expandAllDetails(){this._dom.findAll(".lh-categories details",this._dom.rootEl).map(n=>n.open=!0)}collapseAllDetails(){this._dom.findAll(".lh-categories details",this._dom.rootEl).map(n=>n.open=!1)}_print(){this._reportUIFeatures._opts.onPrintOverride?this._reportUIFeatures._opts.onPrintOverride(this._dom.rootEl):self.print()}resetUIState(){this._dropDownMenu.close()}_getScrollParent(t){let{overflowY:n}=window.getComputedStyle(t);return n!=="visible"&&n!=="hidden"?t:t.parentElement?this._getScrollParent(t.parentElement):document}_setUpCollapseDetailsAfterPrinting(){"onbeforeprint"in self?self.addEventListener("afterprint",this.collapseAllDetails):self.matchMedia("print").addListener(n=>{n.matches?this.expandAllDetails():this.collapseAllDetails()})}_setupStickyHeader(){this.topbarEl=this._dom.find("div.lh-topbar",this._dom.rootEl),this.categoriesEl=this._dom.find("div.lh-categories",this._dom.rootEl),window.requestAnimationFrame(()=>window.requestAnimationFrame(()=>{try{this.stickyHeaderEl=this._dom.find("div.lh-sticky-header",this._dom.rootEl)}catch{return}this.highlightEl=this._dom.createChildOf(this.stickyHeaderEl,"div","lh-highlighter");let t=this._getScrollParent(this._dom.find(".lh-container",this._dom.rootEl));t.addEventListener("scroll",()=>this._updateStickyHeader());let n=t instanceof window.Document?document.documentElement:t;new window.ResizeObserver(()=>this._updateStickyHeader()).observe(n)}))}_updateStickyHeader(){if(!this.stickyHeaderEl)return;let t=this.topbarEl.getBoundingClientRect().bottom,n=this.categoriesEl.getBoundingClientRect().top,a=t>=n,o=Array.from(this._dom.rootEl.querySelectorAll(".lh-category")).filter(m=>m.getBoundingClientRect().top-window.innerHeight/2<0),r=o.length>0?o.length-1:0,s=this.stickyHeaderEl.querySelectorAll(".lh-gauge__wrapper, .lh-fraction__wrapper"),p=s[r],c=s[0].getBoundingClientRect().left,l=p.getBoundingClientRect().left-c;this.highlightEl.style.transform=`translate(${l}px)`,this.stickyHeaderEl.classList.toggle("lh-sticky-header--visible",a)}};function za(e,t){let n=t?new Date(t):new Date,a=n.toLocaleTimeString("en-US",{hour12:!1}),i=n.toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}).split("/");i.unshift(i.pop());let o=i.join("-");return`${e}_${o}_${a}`.replace(/[/?<>\\:*|"]/g,"-")}function ja(e){let t=new URL(e.finalDisplayedUrl).hostname;return za(t,e.fetchTime)}function Ma(e){let t=e.steps[0].lhr,n=e.name.replace(/\s/g,"-");return za(n,t.fetchTime)}function Go(e){return Array.from(e.tBodies[0].rows)}var bt=class{constructor(t,n={}){this.json,this._dom=t,this._opts=n,this._topbar=n.omitTopbar?null:new vt(this,t),this.onMediaQueryChange=this.onMediaQueryChange.bind(this)}initFeatures(t){this.json=t,this._fullPageScreenshot=R.getFullPageScreenshot(t),this._topbar&&(this._topbar.enable(t),this._topbar.resetUIState()),this._setupMediaQueryListeners(),this._setupThirdPartyFilter(),this._setupElementScreenshotOverlay(this._dom.rootEl);let n=this._dom.isDevTools()||this._opts.disableDarkMode||this._opts.disableAutoDarkModeAndFireworks;!n&&window.matchMedia("(prefers-color-scheme: dark)").matches&&Ce(this._dom,!0);let i=["performance","accessibility","best-practices","seo"].every(p=>{let c=t.categories[p];return c&&c.score===1}),o=this._opts.disableFireworks||this._opts.disableAutoDarkModeAndFireworks;if(i&&!o&&(this._enableFireworks(),n||Ce(this._dom,!0)),t.categories.performance&&t.categories.performance.auditRefs.some(p=>!!(p.group==="metrics"&&t.audits[p.id].errorMessage))){let p=this._dom.find("input.lh-metrics-toggle__input",this._dom.rootEl);p.checked=!0}this.json.audits["script-treemap-data"]&&this.json.audits["script-treemap-data"].details&&this.addButton({text:v.strings.viewTreemapLabel,icon:"treemap",onClick:()=>Da(this.json)}),this._opts.onViewTrace&&(t.configSettings.throttlingMethod==="simulate"?this._dom.find('a[data-action="view-unthrottled-trace"]',this._dom.rootEl).classList.remove("lh-hidden"):this.addButton({text:v.strings.viewTraceLabel,onClick:()=>this._opts.onViewTrace?.()})),this._opts.getStandaloneReportHTML&&this._dom.find('a[data-action="save-html"]',this._dom.rootEl).classList.remove("lh-hidden");for(let p of this._dom.findAll("[data-i18n]",this._dom.rootEl)){let l=p.getAttribute("data-i18n");p.textContent=v.strings[l]}}addButton(t){let n=this._dom.rootEl.querySelector(".lh-audit-group--metrics");if(!n)return;let a=n.querySelector(".lh-buttons");a||(a=this._dom.createChildOf(n,"div","lh-buttons"));let i=["lh-button"];t.icon&&(i.push("lh-report-icon"),i.push(`lh-report-icon--${t.icon}`));let o=this._dom.createChildOf(a,"button",i.join(" "));return o.textContent=t.text,o.addEventListener("click",t.onClick),o}resetUIState(){this._topbar&&this._topbar.resetUIState()}getReportHtml(){if(!this._opts.getStandaloneReportHTML)throw new Error("`getStandaloneReportHTML` is not set");return this.resetUIState(),this._opts.getStandaloneReportHTML()}saveAsGist(){throw new Error("Cannot save as gist from base report")}_enableFireworks(){this._dom.find(".lh-scores-container",this._dom.rootEl).classList.add("lh-score100")}_setupMediaQueryListeners(){let t=self.matchMedia("(max-width: 500px)");t.addListener(this.onMediaQueryChange),this.onMediaQueryChange(t)}_resetUIState(){this._topbar&&this._topbar.resetUIState()}onMediaQueryChange(t){this._dom.rootEl.classList.toggle("lh-narrow",t.matches)}_setupThirdPartyFilter(){let t=["uses-rel-preconnect","third-party-facades"],n=["legacy-javascript"];Array.from(this._dom.rootEl.querySelectorAll("table.lh-table")).filter(o=>o.querySelector("td.lh-table-column--url, td.lh-table-column--source-location")).filter(o=>{let r=o.closest(".lh-audit");if(!r)throw new Error(".lh-table not within audit");return!t.includes(r.id)}).forEach(o=>{let r=Go(o),s=r.filter(f=>!f.classList.contains("lh-sub-item-row")),p=this._getThirdPartyRows(s,R.getFinalDisplayedUrl(this.json)),c=r.some(f=>f.classList.contains("lh-row--even")),l=this._dom.createComponent("3pFilter"),m=this._dom.find("input",l);m.addEventListener("change",f=>{let _=f.target instanceof HTMLInputElement&&!f.target.checked,A=!0,P=s[0];for(;P;){let S=_&&p.includes(P);do P.classList.toggle("lh-row--hidden",S),c&&(P.classList.toggle("lh-row--even",!S&&A),P.classList.toggle("lh-row--odd",!S&&!A)),P=P.nextElementSibling;while(P&&P.classList.contains("lh-sub-item-row"));S||(A=!A)}});let d=p.filter(f=>!f.classList.contains("lh-row--group")).length;this._dom.find(".lh-3p-filter-count",l).textContent=`${d}`,this._dom.find(".lh-3p-ui-string",l).textContent=v.strings.thirdPartyResourcesLabel;let h=p.length===s.length,g=!p.length;if((h||g)&&(this._dom.find("div.lh-3p-filter",l).hidden=!0),!o.parentNode)return;o.parentNode.insertBefore(l,o);let y=o.closest(".lh-audit");if(!y)throw new Error(".lh-table not within audit");n.includes(y.id)&&!h&&m.click()})}_setupElementScreenshotOverlay(t){this._fullPageScreenshot&&le.installOverlayFeature({dom:this._dom,rootEl:t,overlayContainerEl:t,fullPageScreenshot:this._fullPageScreenshot})}_getThirdPartyRows(t,n){let a=R.getEntityFromUrl(n,this.json.entities),i=this.json.entities?.find(r=>r.isFirstParty===!0)?.name,o=[];for(let r of t){if(i){if(!r.dataset.entity||r.dataset.entity===i)continue}else{let s=r.querySelector("div.lh-text__url");if(!s)continue;let p=s.dataset.url;if(!p||!(R.getEntityFromUrl(p,this.json.entities)!==a))continue}o.push(r)}return o}_saveFile(t){let n=t.type.match("json")?".json":".html",a=ja({finalDisplayedUrl:R.getFinalDisplayedUrl(this.json),fetchTime:this.json.fetchTime})+n;this._opts.onSaveFileOverride?this._opts.onSaveFileOverride(t,a):this._dom.saveFile(t,a)}};function Fa(e,t={}){let n=document.createElement("article");n.classList.add("lh-root","lh-vars");let a=new se(n.ownerDocument,n);return new gt(a).renderReport(e,n,t),new bt(a,t).initFeatures(e),n}function Ha(e,t){let n=new se(document,document.documentElement),a=new we(n);return new Y(n,a).renderCategoryScore(e,{},t)}function Ba(e,t){new se(document,document.documentElement).saveFile(e,t)}function Oa(e){return new se(document,document.documentElement).convertMarkdownCodeSnippets(e)}function Ga(){return new se(document,document.documentElement).createComponent("styles")}var Va=({category:e,href:t,gatherMode:n})=>{let a=oe(()=>Ha(e,{gatherMode:n,omitLabel:!0,onPageAnchorRendered:i=>i.href=t}),[e,t]);return u("div",{ref:a,"data-testid":"CategoryScore"})};var Wa=({text:e})=>{let t=oe(()=>Oa(e),[e]);return u("span",{ref:t})};var Vo=2;function Wo(e,t){switch(e){case"navigation":return t.navigationReport;case"timespan":return t.timespanReport;case"snapshot":return t.snapshotReport}}function $o(e,t){switch(e){case"pass":return t.ratingPass;case"average":return t.ratingAverage;case"fail":return t.ratingFail;case"error":return t.ratingError}}function $a(e){return e.weight*(1-e.result.score)}function Jt(e){return e.result.details&&e.result.details.overallSavingsMs||0}var Jo=({audit:e})=>{let t=E.calculateRating(e.result.score,e.result.scoreDisplayMode);return u("div",{className:`SummaryTooltipAudit SummaryTooltipAudit--${t}`,children:u(Wa,{text:e.result.title})})},qo=({category:e})=>{let t=B();function n(i){return i.result.score!==null&&i.group!=="metrics"&&(i.group!=="hidden"||e.id!=="performance")&&(i.weight>0||Jt(i)>0)&&!E.showAsPassed(i.result)}let a=e.auditRefs.filter(n).sort((i,o)=>{let r=$a(i),s=$a(o);return r!==s?s-r:Jt(o)-Jt(i)}).splice(0,Vo);return a.length?u("div",{className:"SummaryTooltipAudits",children:[u("div",{className:"SummaryTooltipAudits__title",children:t.highestImpact}),a.map(i=>u(Jo,{audit:i},i.id))]}):null},Zo=({category:e,gatherMode:t,url:n})=>{let a=B(),i=dt(),{numPassed:o,numPassableAudits:r,numInformative:s,totalWeight:p}=E.calculateCategoryFraction(e),c=De(),l=E.shouldDisplayAsFraction(t),m=l?o/r:e.score,d=m===null?"error":E.calculateRating(m);return u("div",{className:"SummaryTooltip",children:[u("div",{className:"SummaryTooltip__title",children:Wo(t,a)}),u("div",{className:"SummaryTooltip__url",children:n}),u(q,{}),u("div",{className:"SummaryTooltip__category",children:[u("div",{className:"SummaryTooltip__category-title",children:e.title}),p!==0&&u("div",{className:`SummaryTooltip__rating SummaryTooltip__rating--${d}`,children:[u("span",{children:$o(d,a)}),!l&&e.score!==null&&u(H,{children:[u("span",{children:" · "}),u("span",{children:c.formatter.formatInteger(e.score*100)})]})]})]}),u("div",{className:"SummaryTooltip__fraction",children:[u("span",{children:i(a.passedAuditCount,{numPassed:o})}),u("span",{children:" / "}),u("span",{children:i(a.passableAuditCount,{numPassableAudits:r})})]}),s!==0&&u("div",{className:"SummaryTooltip__informative",children:i(a.informativeAuditCount,{numInformative:s})}),u(qo,{category:e})]})},Ja=({category:e,href:t,gatherMode:n,finalDisplayedUrl:a})=>u("div",{className:"SummaryCategory",children:e?u("div",{className:"SummaryCategory__content",children:[u(Va,{category:e,href:t,gatherMode:n}),u(Zo,{category:e,gatherMode:n,url:a})]}):u("div",{className:"SummaryCategory__null","data-testid":"SummaryCategory__null"})});var Ko=["performance","accessibility","best-practices","seo"],Xo=40,Yo=({lhr:e})=>{let t=B();return u("div",{className:"SummaryNavigationHeader","data-testid":"SummaryNavigationHeader",children:[u(re,{}),u("div",{className:"SummaryNavigationHeader__url",children:u("a",{rel:"noopener",target:"_blank",href:e.finalDisplayedUrl,children:e.finalDisplayedUrl})}),u("div",{className:"SummaryNavigationHeader__category",children:t.categoryPerformance}),u("div",{className:"SummaryNavigationHeader__category",children:t.categoryAccessibility}),u("div",{className:"SummaryNavigationHeader__category",children:t.categoryBestPractices}),u("div",{className:"SummaryNavigationHeader__category",children:t.categorySeo})]})},Qo=({lhr:e,label:t,hashIndex:n})=>{let a=ee(()=>E.prepareReportResult(e),[e]),i=B(),o=Qe(e.gatherMode,i);return u("div",{className:"SummaryFlowStep",children:[e.gatherMode==="navigation"||n===0?u(Yo,{lhr:e}):u("div",{className:"SummaryFlowStep__separator",children:[u(re,{}),u(q,{})]}),u(et,{lhr:e,width:Xo}),u(re,{mode:e.gatherMode}),u("div",{className:"SummaryFlowStep__label",children:[u("div",{className:"SummaryFlowStep__mode",children:o}),u("a",{className:"SummaryFlowStep__link",href:`#index=${n}`,children:t})]}),Ko.map(r=>u(Ja,{category:a.categories[r],href:`#index=${n}&anchor=${r}`,gatherMode:e.gatherMode,finalDisplayedUrl:e.finalDisplayedUrl},r))]})},er=()=>{let e=J();return u("div",{className:"SummaryFlow",children:e.steps.map((t,n)=>u(Qo,{lhr:t.lhr,label:t.name,hashIndex:n},t.lhr.fetchTime))})},tr=()=>{let e=J(),t=B(),n=dt(),a=0,i=0,o=0;for(let p of e.steps)switch(p.lhr.gatherMode){case"navigation":a++;break;case"timespan":i++;break;case"snapshot":o++;break}let r=[];a&&r.push(n(t.navigationReportCount,{numNavigation:a})),i&&r.push(n(t.timespanReportCount,{numTimespan:i})),o&&r.push(n(t.snapshotReportCount,{numSnapshot:o}));let s=r.join(" · ");return u("div",{className:"SummaryHeader",children:[u("div",{className:"SummaryHeader__title",children:t.summary}),u("div",{className:"SummaryHeader__subtitle",children:s})]})},nr=({children:e})=>u("div",{className:"SummarySectionHeader",children:[u("div",{className:"SummarySectionHeader__content",children:e}),u(q,{})]}),qa=()=>{let e=B();return u("div",{className:"Summary","data-testid":"Summary",children:[u(tr,{}),u(q,{}),u(nr,{children:e.allReports}),u(er,{})]})};function ar(e,t){let n=e.cloneNode(!0);if(!n.hash)return n;let a=e.hash.substr(1);n.hash=`#index=${t}&anchor=${a}`,n.onclick=i=>{i.preventDefault();let o=document.getElementById(a);o&&o.scrollIntoView()},e.replaceWith(n)}var Za=({hashState:e})=>{let t=oe(()=>Fa(e.currentLhr,{disableFireworks:!0,disableDarkMode:!0,omitTopbar:!0,omitGlobalStyles:!0,onPageAnchorRendered:n=>ar(n,e.index)}),[e]);return u("div",{ref:t,"data-testid":"Report"})};var qt=e=>{let t=B();return u("div",{className:"HelpDialogColumn",children:[u("div",{className:"HelpDialogColumn__legend",children:[u("div",{className:"HelpDialogColumnTimeline",children:[e.icon,u("div",{className:"HelpDialogColumnTimeline__line"})]}),u("div",{className:"HelpDialogColumn__legend-label",children:e.userFriendlyModeLabel})]}),u("div",{className:"HelpDialogColumn__header",children:[u("div",{className:"HelpDialogColumn__header-title",children:e.lighthouseOfficialModeLabel}),u("p",{children:e.modeDescription})]}),u("div",{className:"HelpDialogColumn__use-cases",children:[u("p",{children:e.useCaseInstruction}),u("ul",{children:e.useCases.map((n,a)=>u("li",{children:n},a))})]}),u("div",{className:"HelpDialogColumn__categories",children:[u("p",{children:t.categories}),u("ul",{children:e.availableCategories.map((n,a)=>u("li",{children:n},a))})]})]})},Ka=({onClose:e})=>{let t=B();return u("div",{className:"HelpDialog",children:[u("div",{className:"HelpDialog__title",children:[u("div",{children:t.helpDialogTitle}),u("div",{style:{flexGrow:1}}),u("button",{className:"HelpDialog__close",onClick:e,children:u(zn,{})})]}),u("div",{className:"HelpDialog__columns",children:[u(qt,{icon:u(Ke,{}),userFriendlyModeLabel:t.navigationDescription,lighthouseOfficialModeLabel:t.navigationReport,modeDescription:t.navigationLongDescription,useCaseInstruction:t.helpUseCaseInstructionNavigation,useCases:[t.helpUseCaseNavigation1,t.helpUseCaseNavigation2,t.helpUseCaseNavigation3],availableCategories:[t.categoryPerformance,t.categoryAccessibility,t.categoryBestPractices,t.categorySeo,t.categoryProgressiveWebApp]}),u(qt,{icon:u(Xe,{}),userFriendlyModeLabel:t.timespanDescription,lighthouseOfficialModeLabel:t.timespanReport,modeDescription:t.timespanLongDescription,useCaseInstruction:t.helpUseCaseInstructionTimespan,useCases:[t.helpUseCaseTimespan1,t.helpUseCaseTimespan2],availableCategories:[t.categoryPerformance,t.categoryBestPractices]}),u(qt,{icon:u(Ye,{}),userFriendlyModeLabel:t.snapshotDescription,lighthouseOfficialModeLabel:t.snapshotReport,modeDescription:t.snapshotLongDescription,useCaseInstruction:t.helpUseCaseInstructionSnapshot,useCases:[t.helpUseCaseSnapshot1,t.helpUseCaseSnapshot2],availableCategories:[t.categoryPerformance,t.categoryAccessibility,t.categoryBestPractices,t.categorySeo]})]})]})};function Zt(e,t){let n=new Blob([t],{type:"text/html"}),a=Ma(e)+".html";Zt.saveFile(n,a)}Zt.saveFile=Ba;var ir=()=>u("svg",{role:"img",class:"lh-topbar__logo",title:"Lighthouse logo",width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:[u("path",{d:"m14 7 10-7 10 7v10h5v7h-5l5 24H9l5-24H9v-7h5V7Z",fill:"#F63"}),u("path",{d:"M31.561 24H14l-1.689 8.105L31.561 24ZM18.983 48H9l1.022-4.907L35.723 32.27l1.663 7.98L18.983 48Z",fill:"#FFA385"}),u("path",{fill:"#FF3",d:"M20.5 10h7v7h-7z"})]}),yt=({onClick:e,label:t,children:n})=>u("button",{className:"TopbarButton",onClick:e,"aria-label":t,children:n}),Xa=({onMenuClick:e})=>{let t=J(),n=B(),[a,i]=ie(!1),{getReportHtml:o,saveAsGist:r}=Wn();return u("div",{className:"Topbar",children:[u(yt,{onClick:e,label:"Button that opens and closes the sidebar",children:u(Hn,{})}),u("div",{className:"Topbar__logo",children:u(ir,{})}),u("div",{className:"Topbar__title",children:n.title}),o&&u(yt,{onClick:()=>{let s=o(t);Zt(t,s)},label:"Button that saves the report as HTML",children:n.save}),r&&u(yt,{onClick:()=>r(t),label:"Button that saves the report to a gist",children:n.dropdownSaveGist}),u("div",{style:{flexGrow:1}}),u(yt,{onClick:()=>i(s=>!s),label:"Button that toggles the help dialog",children:u("div",{className:"Topbar__help-label",children:[u(Bn,{}),n.helpLabel]})}),a?u(Ka,{onClose:()=>i(!1)}):null]})};var or=80,rr=120,Kt=({lhr:e,position:t})=>{let n=t==="main"?rr:or;return u("div",{className:`HeaderThumbnail HeaderThumbnail--${t}`,children:[u(et,{lhr:e,height:n}),u("div",{className:"HeaderThumbnail__icon",children:u(Pt,{mode:e.gatherMode})})]})},Ya=({hashState:e})=>{let t=J(),{index:n}=e,a=t.steps[n],i=t.steps[n-1],o=t.steps[n+1],r=B(),s=Qe(a.lhr.gatherMode,r);return u("div",{className:"Header",children:[i&&u(H,{children:[t.steps[n-2]&&u("div",{className:"Header__segment"}),u("div",{className:"Header__prev-thumbnail",children:[u(Kt,{lhr:i.lhr,position:"prev"}),u("div",{className:"Header__segment"})]}),u("a",{className:"Header__prev-title",href:`#index=${n-1}`,children:i.name})]}),u("div",{className:"Header__current-thumbnail",children:u(Kt,{lhr:a.lhr,position:"main"})}),u("div",{className:"Header__current-title",children:[a.name,u("div",{className:"Header__current-description",children:s})]}),o&&u(H,{children:[u("div",{className:"Header__next-thumbnail",children:[u("div",{className:"Header__segment"}),u(Kt,{lhr:o.lhr,position:"next"})]}),u("a",{className:"Header__next-title",href:`#index=${n+1}`,children:o.name}),t.steps[n+2]&&u("div",{className:"Header__segment"})]})]})};var Qa=()=>{let e=oe(Ga);return u("div",{ref:e})};function sr(e){return!e||!e.anchor?null:document.getElementById(e.anchor)}var lr=()=>{let e=be(),t=qe(null);return Je(()=>{let n=sr(e);n?n.scrollIntoView():t.current&&(t.current.scrollTop=0)},[e]),u("div",{ref:t,className:"Content",children:e?u(H,{children:[u(Ya,{hashState:e}),u(Za,{hashState:e})]}):u(qa,{})})},ei=({flowResult:e,options:t})=>{let[n,a]=ie(!1),i=ee(()=>t||{},[t]);return u(At.Provider,{value:i,children:u(kt.Provider,{value:e,children:u(Sa,{children:[u(Qa,{}),u("div",{className:ve("App",{"App--collapsed":n}),"data-testid":"App",children:[u(Xa,{onMenuClick:()=>a(o=>!o)}),u(Aa,{}),u(lr,{})]})]})})})};function ti(e,t,n){t.classList.add("flow-vars","lh-vars","lh-root"),_n(wt(ei,{flowResult:e,options:n}),t)}function pr(){let e=document.body.querySelector("main");if(!e)throw Error("Container element not found");ti(window.__LIGHTHOUSE_FLOW_JSON__,e,{getReportHtml:()=>document.documentElement.outerHTML})}window.__initLighthouseFlowReport__=pr;window.__initLighthouseFlowReport__();})();
2712
2712
  /**
2713
2713
  * @license