lighthouse 13.4.1-dev.20260915 → 13.4.1-dev.20260916

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.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Be,w,an,ei,ke,on,Qt,rn,He={},sn=[],ti=/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 ln(e){var t=e.parentNode;t&&t.removeChild(e)}function yt(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?Be.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 je(e,r,a,i,null)}function je(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??++an};return i==null&&w.vnode!=null&&w.vnode(o),o}function R(e){return e.children}function Me(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 pn(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 pn(e)}}function bt(e){(!e.__d&&(e.__d=!0)&&ke.push(e)&&!Fe.__r++||Qt!==w.debounceRendering)&&((Qt=w.debounceRendering)||on)(Fe)}function Fe(){for(var e;Fe.__r=ke.length;)e=ke.sort(function(t,n){return t.__v.__b-n.__v.__b}),ke=[],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,_t(s,o,i,n.__n,s.ownerSVGElement!==void 0,o.__h!=null?[r]:null,a,r??ge(o),o.__h),dn(a,o),o.__e!=r&&pn(o)))})}function un(e,t,n,a,i,o,r,s,p,c){var l,d,m,h,v,_,f,g=a&&a.__k||sn,y=g.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"?je(null,h,null,null,h):Array.isArray(h)?je(R,{children:h},null,null,null):h.__b>0?je(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(m=g[l])===null||m&&h.key==m.key&&h.type===m.type)g[l]=void 0;else for(d=0;d<y;d++){if((m=g[d])&&h.key==m.key&&h.type===m.type){g[d]=void 0;break}m=null}_t(e,h,m=m||He,i,o,r,s,p,c),v=h.__e,(d=h.ref)&&m.ref!=d&&(f||(f=[]),m.ref&&f.push(m.ref,null,h),f.push(d,h.__c||v,h)),v!=null?(_==null&&(_=v),typeof h.type=="function"&&h.__k===m.__k?h.__d=p=cn(h,p,e):p=mn(e,h,m,g,v,p),typeof n.type=="function"&&(n.__d=p)):p&&m.__e==p&&p.parentNode!=e&&(p=ge(m))}for(n.__e=_,l=y;l--;)g[l]!=null&&(typeof n.type=="function"&&g[l].__e!=null&&g[l].__e==n.__d&&(n.__d=ge(a,l+1)),gn(g[l],g[l]));if(f)for(l=0;l<f.length;l++)hn(f[l],f[++l],f[++l])}function cn(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"?cn(a,t,n):mn(n,a,a,i,a.__e,t));return t}function mn(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 ni(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 en(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||ti.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||en(e.style,t,"");if(n)for(t in n)a&&n[t]===a[t]||en(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?nn:tn,o):e.removeEventListener(t,o?nn:tn,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 tn(e){this.l[e.type+!1](w.event?w.event(e):e)}function nn(e){this.l[e.type+!0](w.event?w.event(e):e)}function _t(e,t,n,a,i,o,r,s,p){var c,l,d,m,h,v,_,f,g,y,C,x=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 x=="function"){if(f=t.props,g=(c=x.contextType)&&a[c.__c],y=c?g?g.props.value:c.__:a,n.__c?_=(l=t.__c=n.__c).__=l.__E:("prototype"in x&&x.prototype.render?t.__c=l=new x(f,y):(t.__c=l=new Me(f,y),l.constructor=x,l.render=ii),g&&g.sub(l),l.props=f,l.state||(l.state={}),l.context=y,l.__n=a,d=l.__d=!0,l.__h=[]),l.__s==null&&(l.__s=l.state),x.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=ae({},l.__s)),ae(l.__s,x.getDerivedStateFromProps(f,l.__s))),m=l.props,h=l.state,d)x.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(x.getDerivedStateFromProps==null&&f!==m&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(f,y),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(f,l.__s,y)===!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(A){A&&(A.__=t)}),l.__h.length&&r.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(f,l.__s,y),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(m,h,v)})}l.context=y,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())),d||l.getSnapshotBeforeUpdate==null||(v=l.getSnapshotBeforeUpdate(m,h)),C=c!=null&&c.type===R&&c.key==null?c.props.children:c,un(e,Array.isArray(C)?C:[C],t,n,a,i,o,r,s,p),l.base=t.__e,t.__h=null,l.__h.length&&r.push(l),_&&(l.__E=l.__=null),l.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ai(n.__e,t,n,a,i,o,r,p);(c=w.diffed)&&c(t)}catch(A){t.__v=null,(p||o!=null)&&(t.__e=s,t.__h=!!p,o[o.indexOf(s)]=null),w.__e(A,t,n)}}function dn(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 ai(e,t,n,a,i,o,r,s){var p,c,l,d=n.props,m=t.props,h=t.type,v=0;if(h==="svg"&&(i=!0),o!=null){for(;v<o.length;v++)if((p=o[v])&&"setAttribute"in p==!!h&&(h?p.localName===h:p.nodeType===3)){e=p,o[v]=null;break}}if(e==null){if(h===null)return document.createTextNode(m);e=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,m.is&&m),o=null,s=!1}if(h===null)d===m||s&&e.data===m||(e.data=m);else{if(o=o&&Be.call(e.childNodes),c=(d=n.props||He).dangerouslySetInnerHTML,l=m.dangerouslySetInnerHTML,!s){if(o!=null)for(d={},v=0;v<e.attributes.length;v++)d[e.attributes[v].name]=e.attributes[v].value;(l||c)&&(l&&(c&&l.__html==c.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(ni(e,m,d,i,s),l)t.__k=[];else if(v=t.props.children,un(e,Array.isArray(v)?v:[v],t,n,a,i&&h!=="foreignObject",o,r,o?o[0]:n.__k&&ge(n,0),s),o!=null)for(v=o.length;v--;)o[v]!=null&&ln(o[v]);s||("value"in m&&(v=m.value)!==void 0&&(v!==e.value||h==="progress"&&!v||h==="option"&&v!==d.value)&&Oe(e,"value",v,d.value,!1),"checked"in m&&(v=m.checked)!==void 0&&v!==e.checked&&Oe(e,"checked",v,d.checked,!1))}return e}function hn(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(a){w.__e(a,n)}}function gn(e,t,n){var a,i;if(w.unmount&&w.unmount(e),(a=e.ref)&&(a.current&&a.current!==e.__e||hn(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]&&gn(a[i],t,typeof e.type!="function");n||e.__e==null||ln(e.__e),e.__e=e.__d=void 0}function ii(e,t,n){return this.constructor(e,n)}function fn(e,t,n){var a,i,o;w.__&&w.__(e,t),i=(a=typeof n=="function")?null:n&&n.__k||t.__k,o=[],_t(t,e=(!a&&n||t).__k=yt(R,null,[e]),i||He,He,t.ownerSVGElement!==void 0,!a&&n?[n]:i?null:t.firstChild?Be.call(t.childNodes):null,o,!a&&n?n:i?i.__e:t.firstChild,a),dn(o,e)}function Pe(e,t){var n={__c:t="__cC"+rn++,__: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(bt)},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}Be=sn.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}},an=0,ei=function(e){return e!=null&&e.constructor===void 0},Me.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),bt(this))},Me.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),bt(this))},Me.prototype.render=R,ke=[],on=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Fe.__r=0,rn=0;var fe,M,vn,Ve=0,Sn=[],bn=w.__b,yn=w.__r,_n=w.diffed,Cn=w.__c,wn=w.unmount;function Ae(e,t){w.__h&&w.__h(M,e,Ve||t),Ve=0;var n=M.__H||(M.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ie(e){return Ve=1,oi(kn,e)}function oi(e,t,n){var a=Ae(fe++,2);return a.t=e,a.__c||(a.__=[n?n(t):kn(void 0,t),function(i){var o=a.t(a.__[0],i);a.__[0]!==o&&(a.__=[o,a.__[1]],a.__c.setState({}))}],a.__c=M),a.__}function $e(e,t){var n=Ae(fe++,3);!w.__s&&wt(n.__H,t)&&(n.__=e,n.__H=t,M.__H.__h.push(n))}function qe(e,t){var n=Ae(fe++,4);!w.__s&&wt(n.__H,t)&&(n.__=e,n.__H=t,M.__h.push(n))}function We(e){return Ve=5,Q(function(){return{current:e}},[])}function Q(e,t){var n=Ae(fe++,7);return wt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Le(e){var t=M.context[e.__c],n=Ae(fe++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(M)),t.props.value):e.__}function ri(){for(var e;e=Sn.shift();)if(e.__P)try{e.__H.__h.forEach(Ge),e.__H.__h.forEach(Ct),e.__H.__h=[]}catch(t){e.__H.__h=[],w.__e(t,e.__v)}}w.__b=function(e){M=null,bn&&bn(e)},w.__r=function(e){yn&&yn(e),fe=0;var t=(M=e.__c).__H;t&&(t.__h.forEach(Ge),t.__h.forEach(Ct),t.__h=[])},w.diffed=function(e){_n&&_n(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(Sn.push(t)!==1&&vn===w.requestAnimationFrame||((vn=w.requestAnimationFrame)||function(n){var a,i=function(){clearTimeout(o),xn&&cancelAnimationFrame(a),setTimeout(n)},o=setTimeout(i,100);xn&&(a=requestAnimationFrame(i))})(ri)),M=null},w.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ge),n.__h=n.__h.filter(function(a){return!a.__||Ct(a)})}catch(a){t.some(function(i){i.__h&&(i.__h=[])}),t=[],w.__e(a,n.__v)}}),Cn&&Cn(e,t)},w.unmount=function(e){wn&&wn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Ge(a)}catch(i){t=i}}),t&&w.__e(t,n.__v))};var xn=typeof requestAnimationFrame=="function";function Ge(e){var t=M,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),M=t}function Ct(e){var t=M;e.__c=e.__(),M=t}function wt(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function kn(e,t){return typeof t=="function"?t(e):t}var si=.8999999999999999,li=.5,pi=.49999999999999994;function ui(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 Pn({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-ui(p))/2,l;return n<=t?l=Math.max(.9,Math.min(1,c)):n<=e?l=Math.max(li,Math.min(si,c)):l=Math.max(0,Math.min(pi,c)),l}var ee="…",mi=" ",An=.9,di={PASS:{label:"pass",minScore:An},AVERAGE:{label:"average",minScore:.5},FAIL:{label:"fail"},ERROR:{label:"error"}},hi=["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"],I=class e{static get RATINGS(){return di}static get PASS_THRESHOLD(){return An}static get MS_DISPLAY_VALUE(){return`%10d${mi}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=ee+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${ee}`),r=r.replace(/([a-zA-Z0-9-_]{9})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9-_]{10,}/g,`$1${ee}`),r=r.replace(/(\d{3})\d{6,}/g,`$1${ee}`),r=r.replace(/\u2026+/g,ee),r.length>s&&r.includes("?")&&(r=r.replace(/\?([^=]*)(=)?.*/,`?$1$2${ee}`),r.length>s&&(r=r.replace(/\?.*/,`?${ee}`)))),r.length>s){let p=r.lastIndexOf(".");p>=0?r=r.slice(0,s-1-(r.length-p))+`${ee}${r.slice(p)}`:r=r.slice(0,s-1)+ee}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 hi.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=Pn(t,n);return a>.9&&(a+=.05*(a-.9)),Math.floor(a*100)/100}};var Ln=0,b=class e{static i18n=null;static strings={};static reportJson=null;static apply(t){e.strings={...Je,...t.providedStrings},e.i18n=t.i18n,e.reportJson=t.reportJson}static getUniqueSuffix(){return Ln++}static resetUniqueSuffix(){Ln=0}};var En="data:image/jpeg;base64,";function In(e){e.configSettings.locale||(e.configSettings.locale="en"),e.configSettings.formFactor||(e.configSettings.formFactor=e.configSettings.emulatedFormFactor),e.finalDisplayedUrl=I.getFinalDisplayedUrl(e),e.mainDocumentUrl=I.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(En)||(i.data=En+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 te=I.RATINGS,P=class e{static prepareReportResult(t){let n=JSON.parse(JSON.stringify(t));In(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)}}if(n.stackPacks){let p=[o.id,...o.result.replacesAudits??[]];n.stackPacks.forEach(c=>{let l=p.find(d=>c.descriptions[d]);l&&c.descriptions[l]&&(o.stackPacks=o.stackPacks||[],o.stackPacks.push({title:c.title,iconDataURL:c.iconDataURL,description:c.descriptions[l]}))})}});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=I.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=b.i18n,s=b.strings;switch(t.throttlingMethod){case"provided":i=a=n=s.throttlingProvided;break;case"devtools":{let{cpuSlowdownMultiplier:m,requestLatencyMs:h}=o;n=`${r.formatNumber(m)}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:m,rttMs:h,throughputKbps:v}=o;n=`${r.formatNumber(m)}x slowdown (Simulated)`,a=`${r.formatMilliseconds(h)} TCP RTT, ${r.formatKbps(v)} throughput (Simulated)`,i=h===150&&v===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 d=p?void 0:`${t.screenEmulation.width}x${t.screenEmulation.height}, DPR ${t.screenEmulation.deviceScaleFactor}`;return{deviceEmulation:l,screenEmulation:d,cpuThrottling:n,networkThrottling:a,summary:i}}static showAsPassed(t){switch(t.scoreDisplayMode){case"manual":case"notApplicable":return!0;case"error":case"informative":return!1;default:return Number(t.score)>=te.PASS.minScore}}static calculateRating(t,n){if(n==="manual"||n==="notApplicable")return te.PASS.label;if(n==="error")return te.ERROR.label;if(t===null)return te.FAIL.label;let a=te.FAIL.label;return t>=te.PASS.minScore?a=te.PASS.label:t>=te.AVERAGE.minScore&&(a=te.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,n){return t==="timespan"||t==="snapshot"||n?.categoryScoreDisplayMode==="fraction"}},Je={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",unscoredLabel:"Unscored",unscoredTitle:"This audit does not contribute to the overall category score."};var gi=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:--gi,__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 Un=()=>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"})}),Ze=()=>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"})}),Ke=()=>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"})]}),Xe=()=>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"})}),Tn=()=>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"})]}),Rn=()=>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"})}),Nn=()=>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"})}),Dn=()=>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"})}),zn=()=>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"})]}),jn=()=>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 xt=Pe(void 0),St=Pe({});function Mn(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 Hn(e){let{width:t,height:n}=e.configSettings.screenEmulation;return{width:t,height:n}}function Fn(e){let t=e.audits["screenshot-thumbnails"];return t&&t.details&&t.details.type==="filmstrip"&&t.details.items||void 0}function Ye(e,t){switch(e){case"navigation":return t.navigationDescription;case"timespan":return t.timespanDescription;case"snapshot":return t.snapshotDescription}}function B(){let e=Le(xt);if(!e)throw Error("useFlowResult must be called in the FlowResultContext");return e}function fi(...e){let[t,n]=ie(e.map(Mn));return $e(()=>{function a(){let i=e.map(Mn);i.every((o,r)=>o===t[r])||n(i)}return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[t]),t}function be(){let e=B(),[t,n]=fi("index","anchor");return Q(()=>{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=We(null);return qe(()=>{if(!n.current)return;let a=e();return n.current.append(a),()=>{n.current?.contains(a)&&n.current.removeChild(a)}},t),n}function On(){return Le(St)}var vi=500,$=()=>u("div",{className:"Separator",role:"separator"}),kt=({mode:e})=>u(R,{children:[e==="navigation"&&u(Ze,{}),e==="timespan"&&u(Ke,{}),e==="snapshot"&&u(Xe,{})]}),re=({mode:e})=>u("div",{className:"FlowSegment",children:[u("div",{className:"FlowSegment__top-line"}),e&&u(kt,{mode:e}),u("div",{className:"FlowSegment__bottom-line"})]}),bi=({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),vi);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"})},Qe=({lhr:e,width:t,height:n})=>{let a=Fn(e),i=Hn(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(R,{});let o;if(a?.length){if(o=a[a.length-1].data,e.gatherMode==="timespan")return u(bi,{frames:a,width:t,height:n})}else o=I.getFullPageScreenshot(e)?.screenshot.data;return u(R,{children:o&&u("img",{className:"FlowStepThumbnail",src:o,style:{width:t,height:n},alt:"Screenshot of a page tested by Lighthouse"})})};var Pt=function(e,t){return Pt=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])},Pt(e,t)};function Ee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Pt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var J=function(){return J=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},J.apply(this,arguments)};function Bn(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 et(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 S;(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"})(S||(S={}));var E;(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"})(E||(E={}));var ue;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ue||(ue={}));function At(e){return e.type===E.literal}function Gn(e){return e.type===E.argument}function tt(e){return e.type===E.number}function nt(e){return e.type===E.date}function at(e){return e.type===E.time}function it(e){return e.type===E.select}function ot(e){return e.type===E.plural}function Vn(e){return e.type===E.pound}function rt(e){return e.type===E.tag}function st(e){return!!(e&&typeof e=="object"&&e.type===ue.number)}function Ie(e){return!!(e&&typeof e=="object"&&e.type===ue.dateTime)}var Lt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;var yi=/(?:[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 $n(e){var t={};return e.replace(yi,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 U=function(){return U=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},U.apply(this,arguments)};var qn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Kn(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(qn).filter(function(m){return m.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 d=l[c];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:p})}return n}function _i(e){return e.replace(/^(.*?)-/,"")}var Wn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Xn=/^(@+)?(\+|#+)?[rs]?$/g,Ci=/(\*)(0+)|(#+)(0+)|(0+)/g,Yn=/^(0+)$/;function Jn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Xn,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 Qn(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 wi(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)),!Yn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Zn(e){var t={},n=Qn(e);return n||t}function ea(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=_i(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=U(U(U({},t),{notation:"scientific"}),i.options.reduce(function(p,c){return U(U({},p),Zn(c))},{}));continue;case"engineering":t=U(U(U({},t),{notation:"engineering"}),i.options.reduce(function(p,c){return U(U({},p),Zn(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(Ci,function(p,c,l,d,m,h){if(c)t.minimumIntegerDigits=l.length;else{if(d&&m)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(Yn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Wn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Wn,function(p,c,l,d,m,h){return l==="*"?t.minimumFractionDigits=c.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&h?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+h.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?t=U(U({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=U(U({},t),Jn(o)));continue}if(Xn.test(i.stem)){t=U(U({},t),Jn(i.stem));continue}var r=Qn(i.stem);r&&(t=U(U({},t),r));var s=wi(i.stem);s&&(t=U(U({},t),s))}return t}var Ue={"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 ta(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=xi(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 xi(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=Ue[a||""]||Ue[n||""]||Ue["".concat(n,"-001")]||Ue["001"];return i[0]}var Et,Si=new RegExp("^".concat(Lt.source,"*")),ki=new RegExp("".concat(Lt.source,"*$"));function k(e,t){return{start:e,end:t}}var Pi=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ai=!!String.fromCodePoint,Li=!!Object.fromEntries,Ei=!!String.prototype.codePointAt,Ii=!!String.prototype.trimStart,Ui=!!String.prototype.trimEnd,Ti=!!Number.isSafeInteger,Ri=Ti?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ut=!0;try{na=ra("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Ut=((Et=na.exec("a"))===null||Et===void 0?void 0:Et[0])==="a"}catch{Ut=!1}var na,aa=Pi?function(t,n,a){return t.startsWith(n,a)}:function(t,n,a){return t.slice(a,a+n.length)===n},Tt=Ai?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},ia=Li?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},oa=Ei?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}},Ni=Ii?function(t){return t.trimStart()}:function(t){return t.replace(Si,"")},Di=Ui?function(t){return t.trimEnd()}:function(t){return t.replace(ki,"")};function ra(e,t){return new RegExp(e,t)}var Rt;Ut?(It=ra("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Rt=function(t,n){var a;It.lastIndex=n;var i=It.exec(t);return(a=i[1])!==null&&a!==void 0?a:""}):Rt=function(t,n){for(var a=[];;){var i=oa(t,n);if(i===void 0||la(i)||Mi(i))break;a.push(i),n+=i>=65536?2:1}return Tt.apply(void 0,a)};var It,sa=(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:E.pound,location:k(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(S.UNMATCHED_CLOSING_TAG,k(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Nt(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:E.literal,value:"<".concat(i,"/>"),location:k(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()||!Nt(this.char()))return this.error(S.INVALID_TAG,k(s,this.clonePosition()));var p=this.clonePosition(),c=this.parseTagName();return i!==c?this.error(S.UNMATCHED_CLOSING_TAG,k(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:E.tag,value:i,children:r,location:k(a,this.clonePosition())},err:null}:this.error(S.INVALID_TAG,k(s,this.clonePosition())))}else return this.error(S.UNCLOSED_TAG,k(a,this.clonePosition()))}else return this.error(S.INVALID_TAG,k(a,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ji(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=k(a,this.clonePosition());return{val:{type:E.literal,value:i,location:p},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!zi(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 Tt.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(),Tt(a))},e.prototype.parseArgument=function(t,n){var a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(S.EMPTY_ARGUMENT,k(a,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(S.MALFORMED_ARGUMENT,k(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:E.argument,value:i,location:k(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(a,this.clonePosition())):this.parseArgumentOptions(t,n,i,a);default:return this.error(S.MALFORMED_ARGUMENT,k(a,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),a=Rt(this.message,n),i=n+a.length;this.bumpTo(i);var o=this.clonePosition(),r=k(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(S.EXPECT_ARGUMENT_TYPE,k(r,p));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=Di(d.val);if(m.length===0)return this.error(S.EXPECT_ARGUMENT_STYLE,k(this.clonePosition(),this.clonePosition()));var h=k(l,this.clonePosition());c={style:m,styleLocation:h}}var v=this.tryParseArgumentClose(i);if(v.err)return v;var _=k(i,this.clonePosition());if(c&&aa(c?.style,"::",0)){var f=Ni(c.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(f,c.styleLocation);return d.err?d:{val:{type:E.number,value:a,location:_,style:d.val},err:null}}else{if(f.length===0)return this.error(S.EXPECT_DATE_TIME_SKELETON,_);var g=f;this.locale&&(g=ta(f,this.locale));var m={type:ue.dateTime,pattern:g,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?$n(g):{}},y=s==="date"?E.date:E.time;return{val:{type:y,value:a,location:_,style:m},err:null}}}return{val:{type:s==="number"?E.number:s==="date"?E.date:E.time,value:a,location:_,style:(o=c?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS,k(C,ye({},C)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),A=0;if(s!=="select"&&x.value==="offset"){if(!this.bumpIf(":"))return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),x=this.parseIdentifierIfPossible(),A=d.val}var T=this.tryParsePluralOrSelectOptions(t,s,n,x);if(T.err)return T;var v=this.tryParseArgumentClose(i);if(v.err)return v;var D=k(i,this.clonePosition());return s==="select"?{val:{type:E.select,value:a,options:ia(T.val),location:D},err:null}:{val:{type:E.plural,value:a,options:ia(T.val),offset:A,pluralType:s==="plural"?"cardinal":"ordinal",location:D},err:null}}default:return this.error(S.INVALID_ARGUMENT_TYPE,k(r,p))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(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(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,k(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=Kn(t)}catch{return this.error(S.INVALID_NUMBER_SKELETON,n)}return{val:{type:ue.number,tokens:a,location:n,parsedOptions:this.shouldParseSkeletons?ea(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 d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR,S.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;l=k(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}else break}if(p.has(c))return this.error(n==="select"?S.DUPLICATE_SELECT_ARGUMENT_SELECTOR:S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c==="other"&&(r=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,k(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,n,a);if(v.err)return v;var _=this.tryParseArgumentClose(h);if(_.err)return _;s.push([c,{value:v.val,location:k(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"?S.EXPECT_SELECT_ARGUMENT_SELECTOR:S.EXPECT_PLURAL_ARGUMENT_SELECTOR,k(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(S.MISSING_OTHER_CLAUSE,k(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=k(i,this.clonePosition());return o?(r*=a,Ri(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=oa(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(aa(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()&&la(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 Nt(e){return e>=97&&e<=122||e>=65&&e<=90}function zi(e){return Nt(e)||e===47}function ji(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 la(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Mi(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 Dt(e){e.forEach(function(t){if(delete t.location,it(t)||ot(t))for(var n in t.options)delete t.options[n].location,Dt(t.options[n].value);else tt(t)&&st(t.style)||(nt(t)||at(t))&&Ie(t.style)?delete t.style.location:rt(t)&&Dt(t.children)})}function pa(e,t){t===void 0&&(t={}),t=ye({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new sa(e,t).parse();if(n.err){var a=SyntaxError(S[n.err.kind]);throw a.location=n.err.location,a.originalMessage=n.err.message,a}return t?.captureLocation||Dt(n.val),n.val}function lt(e,t){var n=t&&t.cache?t.cache:Vi,a=t&&t.serializer?t.serializer:Gi,i=t&&t.strategy?t.strategy:Fi;return i(e,{cache:n,serializer:a})}function Hi(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ua(e,t,n,a){var i=Hi(a)?a:n(a),o=t.get(i);return typeof o>"u"&&(o=e.call(this,a),t.set(i,o)),o}function ca(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 zt(e,t,n,a,i){return n.bind(t,e,a,i)}function Fi(e,t){var n=e.length===1?ua:ca;return zt(e,this,n,t.cache.create(),t.serializer)}function Oi(e,t){return zt(e,this,ca,t.cache.create(),t.serializer)}function Bi(e,t){return zt(e,this,ua,t.cache.create(),t.serializer)}var Gi=function(){return JSON.stringify(arguments)};function jt(){this.cache=Object.create(null)}jt.prototype.get=function(e){return this.cache[e]};jt.prototype.set=function(e,t){this.cache[e]=t};var Vi={create:function(){return new jt}},pt={variadic:Oi,monadic:Bi};var ce;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ce||(ce={}));var Te=(function(e){Ee(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 Mt=(function(e){Ee(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('", "'),'"'),ce.INVALID_VALUE,o)||this}return t})(Te);var ma=(function(e){Ee(t,e);function t(n,a,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(a),ce.INVALID_VALUE,i)||this}return t})(Te);var da=(function(e){Ee(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,'"'),ce.MISSING_VALUE,a)||this}return t})(Te);var j;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(j||(j={}));function $i(e){return e.length<2?e:e.reduce(function(t,n){var a=t[t.length-1];return!a||a.type!==j.literal||n.type!==j.literal?t.push(n):a.value+=n.value,t},[])}function qi(e){return typeof e=="function"}function Re(e,t,n,a,i,o,r){if(e.length===1&&At(e[0]))return[{type:j.literal,value:e[0].value}];for(var s=[],p=0,c=e;p<c.length;p++){var l=c[p];if(At(l)){s.push({type:j.literal,value:l.value});continue}if(Vn(l)){typeof o=="number"&&s.push({type:j.literal,value:n.getNumberFormat(t).format(o)});continue}var d=l.value;if(!(i&&d in i))throw new da(d,r);var m=i[d];if(Gn(l)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),s.push({type:typeof m=="string"?j.literal:j.object,value:m});continue}if(nt(l)){var h=typeof l.style=="string"?a.date[l.style]:Ie(l.style)?l.style.parsedOptions:void 0;s.push({type:j.literal,value:n.getDateTimeFormat(t,h).format(m)});continue}if(at(l)){var h=typeof l.style=="string"?a.time[l.style]:Ie(l.style)?l.style.parsedOptions:a.time.medium;s.push({type:j.literal,value:n.getDateTimeFormat(t,h).format(m)});continue}if(tt(l)){var h=typeof l.style=="string"?a.number[l.style]:st(l.style)?l.style.parsedOptions:void 0;h&&h.scale&&(m=m*(h.scale||1)),s.push({type:j.literal,value:n.getNumberFormat(t,h).format(m)});continue}if(rt(l)){var v=l.children,_=l.value,f=i[_];if(!qi(f))throw new ma(_,"function",r);var g=Re(v,t,n,a,i,o),y=f(g.map(function(A){return A.value}));Array.isArray(y)||(y=[y]),s.push.apply(s,y.map(function(A){return{type:typeof A=="string"?j.literal:j.object,value:A}}))}if(it(l)){var C=l.options[m]||l.options.other;if(!C)throw new Mt(l.value,m,Object.keys(l.options),r);s.push.apply(s,Re(C.value,t,n,a,i));continue}if(ot(l)){var C=l.options["=".concat(m)];if(!C){if(!Intl.PluralRules)throw new Te(`Intl.PluralRules is not available in this environment.
1
+ "use strict";(()=>{var Be,w,an,ei,ke,on,Qt,rn,He={},sn=[],ti=/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 ln(e){var t=e.parentNode;t&&t.removeChild(e)}function yt(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?Be.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 je(e,r,a,i,null)}function je(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??++an};return i==null&&w.vnode!=null&&w.vnode(o),o}function R(e){return e.children}function Me(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 pn(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 pn(e)}}function bt(e){(!e.__d&&(e.__d=!0)&&ke.push(e)&&!Fe.__r++||Qt!==w.debounceRendering)&&((Qt=w.debounceRendering)||on)(Fe)}function Fe(){for(var e;Fe.__r=ke.length;)e=ke.sort(function(t,n){return t.__v.__b-n.__v.__b}),ke=[],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,_t(s,o,i,n.__n,s.ownerSVGElement!==void 0,o.__h!=null?[r]:null,a,r??ge(o),o.__h),dn(a,o),o.__e!=r&&pn(o)))})}function un(e,t,n,a,i,o,r,s,p,c){var l,d,m,h,v,_,f,g=a&&a.__k||sn,y=g.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"?je(null,h,null,null,h):Array.isArray(h)?je(R,{children:h},null,null,null):h.__b>0?je(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(m=g[l])===null||m&&h.key==m.key&&h.type===m.type)g[l]=void 0;else for(d=0;d<y;d++){if((m=g[d])&&h.key==m.key&&h.type===m.type){g[d]=void 0;break}m=null}_t(e,h,m=m||He,i,o,r,s,p,c),v=h.__e,(d=h.ref)&&m.ref!=d&&(f||(f=[]),m.ref&&f.push(m.ref,null,h),f.push(d,h.__c||v,h)),v!=null?(_==null&&(_=v),typeof h.type=="function"&&h.__k===m.__k?h.__d=p=cn(h,p,e):p=mn(e,h,m,g,v,p),typeof n.type=="function"&&(n.__d=p)):p&&m.__e==p&&p.parentNode!=e&&(p=ge(m))}for(n.__e=_,l=y;l--;)g[l]!=null&&(typeof n.type=="function"&&g[l].__e!=null&&g[l].__e==n.__d&&(n.__d=ge(a,l+1)),gn(g[l],g[l]));if(f)for(l=0;l<f.length;l++)hn(f[l],f[++l],f[++l])}function cn(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"?cn(a,t,n):mn(n,a,a,i,a.__e,t));return t}function mn(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 ni(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 en(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||ti.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||en(e.style,t,"");if(n)for(t in n)a&&n[t]===a[t]||en(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?nn:tn,o):e.removeEventListener(t,o?nn:tn,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 tn(e){this.l[e.type+!1](w.event?w.event(e):e)}function nn(e){this.l[e.type+!0](w.event?w.event(e):e)}function _t(e,t,n,a,i,o,r,s,p){var c,l,d,m,h,v,_,f,g,y,C,x=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 x=="function"){if(f=t.props,g=(c=x.contextType)&&a[c.__c],y=c?g?g.props.value:c.__:a,n.__c?_=(l=t.__c=n.__c).__=l.__E:("prototype"in x&&x.prototype.render?t.__c=l=new x(f,y):(t.__c=l=new Me(f,y),l.constructor=x,l.render=ii),g&&g.sub(l),l.props=f,l.state||(l.state={}),l.context=y,l.__n=a,d=l.__d=!0,l.__h=[]),l.__s==null&&(l.__s=l.state),x.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=ae({},l.__s)),ae(l.__s,x.getDerivedStateFromProps(f,l.__s))),m=l.props,h=l.state,d)x.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(x.getDerivedStateFromProps==null&&f!==m&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(f,y),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(f,l.__s,y)===!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(A){A&&(A.__=t)}),l.__h.length&&r.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(f,l.__s,y),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(m,h,v)})}l.context=y,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())),d||l.getSnapshotBeforeUpdate==null||(v=l.getSnapshotBeforeUpdate(m,h)),C=c!=null&&c.type===R&&c.key==null?c.props.children:c,un(e,Array.isArray(C)?C:[C],t,n,a,i,o,r,s,p),l.base=t.__e,t.__h=null,l.__h.length&&r.push(l),_&&(l.__E=l.__=null),l.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ai(n.__e,t,n,a,i,o,r,p);(c=w.diffed)&&c(t)}catch(A){t.__v=null,(p||o!=null)&&(t.__e=s,t.__h=!!p,o[o.indexOf(s)]=null),w.__e(A,t,n)}}function dn(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 ai(e,t,n,a,i,o,r,s){var p,c,l,d=n.props,m=t.props,h=t.type,v=0;if(h==="svg"&&(i=!0),o!=null){for(;v<o.length;v++)if((p=o[v])&&"setAttribute"in p==!!h&&(h?p.localName===h:p.nodeType===3)){e=p,o[v]=null;break}}if(e==null){if(h===null)return document.createTextNode(m);e=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,m.is&&m),o=null,s=!1}if(h===null)d===m||s&&e.data===m||(e.data=m);else{if(o=o&&Be.call(e.childNodes),c=(d=n.props||He).dangerouslySetInnerHTML,l=m.dangerouslySetInnerHTML,!s){if(o!=null)for(d={},v=0;v<e.attributes.length;v++)d[e.attributes[v].name]=e.attributes[v].value;(l||c)&&(l&&(c&&l.__html==c.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(ni(e,m,d,i,s),l)t.__k=[];else if(v=t.props.children,un(e,Array.isArray(v)?v:[v],t,n,a,i&&h!=="foreignObject",o,r,o?o[0]:n.__k&&ge(n,0),s),o!=null)for(v=o.length;v--;)o[v]!=null&&ln(o[v]);s||("value"in m&&(v=m.value)!==void 0&&(v!==e.value||h==="progress"&&!v||h==="option"&&v!==d.value)&&Oe(e,"value",v,d.value,!1),"checked"in m&&(v=m.checked)!==void 0&&v!==e.checked&&Oe(e,"checked",v,d.checked,!1))}return e}function hn(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(a){w.__e(a,n)}}function gn(e,t,n){var a,i;if(w.unmount&&w.unmount(e),(a=e.ref)&&(a.current&&a.current!==e.__e||hn(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]&&gn(a[i],t,typeof e.type!="function");n||e.__e==null||ln(e.__e),e.__e=e.__d=void 0}function ii(e,t,n){return this.constructor(e,n)}function fn(e,t,n){var a,i,o;w.__&&w.__(e,t),i=(a=typeof n=="function")?null:n&&n.__k||t.__k,o=[],_t(t,e=(!a&&n||t).__k=yt(R,null,[e]),i||He,He,t.ownerSVGElement!==void 0,!a&&n?[n]:i?null:t.firstChild?Be.call(t.childNodes):null,o,!a&&n?n:i?i.__e:t.firstChild,a),dn(o,e)}function Pe(e,t){var n={__c:t="__cC"+rn++,__: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(bt)},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}Be=sn.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}},an=0,ei=function(e){return e!=null&&e.constructor===void 0},Me.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),bt(this))},Me.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),bt(this))},Me.prototype.render=R,ke=[],on=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Fe.__r=0,rn=0;var fe,M,vn,Ve=0,Sn=[],bn=w.__b,yn=w.__r,_n=w.diffed,Cn=w.__c,wn=w.unmount;function Ae(e,t){w.__h&&w.__h(M,e,Ve||t),Ve=0;var n=M.__H||(M.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ie(e){return Ve=1,oi(kn,e)}function oi(e,t,n){var a=Ae(fe++,2);return a.t=e,a.__c||(a.__=[n?n(t):kn(void 0,t),function(i){var o=a.t(a.__[0],i);a.__[0]!==o&&(a.__=[o,a.__[1]],a.__c.setState({}))}],a.__c=M),a.__}function $e(e,t){var n=Ae(fe++,3);!w.__s&&wt(n.__H,t)&&(n.__=e,n.__H=t,M.__H.__h.push(n))}function qe(e,t){var n=Ae(fe++,4);!w.__s&&wt(n.__H,t)&&(n.__=e,n.__H=t,M.__h.push(n))}function We(e){return Ve=5,Q(function(){return{current:e}},[])}function Q(e,t){var n=Ae(fe++,7);return wt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Le(e){var t=M.context[e.__c],n=Ae(fe++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(M)),t.props.value):e.__}function ri(){for(var e;e=Sn.shift();)if(e.__P)try{e.__H.__h.forEach(Ge),e.__H.__h.forEach(Ct),e.__H.__h=[]}catch(t){e.__H.__h=[],w.__e(t,e.__v)}}w.__b=function(e){M=null,bn&&bn(e)},w.__r=function(e){yn&&yn(e),fe=0;var t=(M=e.__c).__H;t&&(t.__h.forEach(Ge),t.__h.forEach(Ct),t.__h=[])},w.diffed=function(e){_n&&_n(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(Sn.push(t)!==1&&vn===w.requestAnimationFrame||((vn=w.requestAnimationFrame)||function(n){var a,i=function(){clearTimeout(o),xn&&cancelAnimationFrame(a),setTimeout(n)},o=setTimeout(i,100);xn&&(a=requestAnimationFrame(i))})(ri)),M=null},w.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ge),n.__h=n.__h.filter(function(a){return!a.__||Ct(a)})}catch(a){t.some(function(i){i.__h&&(i.__h=[])}),t=[],w.__e(a,n.__v)}}),Cn&&Cn(e,t)},w.unmount=function(e){wn&&wn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Ge(a)}catch(i){t=i}}),t&&w.__e(t,n.__v))};var xn=typeof requestAnimationFrame=="function";function Ge(e){var t=M,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),M=t}function Ct(e){var t=M;e.__c=e.__(),M=t}function wt(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function kn(e,t){return typeof t=="function"?t(e):t}var si=.8999999999999999,li=.5,pi=.49999999999999994;function ui(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 Pn({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-ui(p))/2,l;return n<=t?l=Math.max(.9,Math.min(1,c)):n<=e?l=Math.max(li,Math.min(si,c)):l=Math.max(0,Math.min(pi,c)),l}var ee="…",mi=" ",An=.9,di={PASS:{label:"pass",minScore:An},AVERAGE:{label:"average",minScore:.5},FAIL:{label:"fail"},ERROR:{label:"error"}},hi=["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"],I=class e{static get RATINGS(){return di}static get PASS_THRESHOLD(){return An}static get MS_DISPLAY_VALUE(){return`%10d${mi}ms`}static isPluginCategory(t){return/^(@[a-z0-9-~][a-z0-9-._~]*\/)?lighthouse-plugin-[a-z0-9-._~]*$/.test(t)}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=ee+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${ee}`),r=r.replace(/([a-zA-Z0-9-_]{9})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9-_]{10,}/g,`$1${ee}`),r=r.replace(/(\d{3})\d{6,}/g,`$1${ee}`),r=r.replace(/\u2026+/g,ee),r.length>s&&r.includes("?")&&(r=r.replace(/\?([^=]*)(=)?.*/,`?$1$2${ee}`),r.length>s&&(r=r.replace(/\?.*/,`?${ee}`)))),r.length>s){let p=r.lastIndexOf(".");p>=0?r=r.slice(0,s-1-(r.length-p))+`${ee}${r.slice(p)}`:r=r.slice(0,s-1)+ee}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 hi.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=Pn(t,n);return a>.9&&(a+=.05*(a-.9)),Math.floor(a*100)/100}};var Ln=0,b=class e{static i18n=null;static strings={};static reportJson=null;static apply(t){e.strings={...Je,...t.providedStrings},e.i18n=t.i18n,e.reportJson=t.reportJson}static getUniqueSuffix(){return Ln++}static resetUniqueSuffix(){Ln=0}};var En="data:image/jpeg;base64,";function In(e){e.configSettings.locale||(e.configSettings.locale="en"),e.configSettings.formFactor||(e.configSettings.formFactor=e.configSettings.emulatedFormFactor),e.finalDisplayedUrl=I.getFinalDisplayedUrl(e),e.mainDocumentUrl=I.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(En)||(i.data=En+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 te=I.RATINGS,P=class e{static prepareReportResult(t){let n=JSON.parse(JSON.stringify(t));In(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)}}if(n.stackPacks){let p=[o.id,...o.result.replacesAudits??[]];n.stackPacks.forEach(c=>{let l=p.find(d=>c.descriptions[d]);l&&c.descriptions[l]&&(o.stackPacks=o.stackPacks||[],o.stackPacks.push({title:c.title,iconDataURL:c.iconDataURL,description:c.descriptions[l]}))})}});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=I.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=b.i18n,s=b.strings;switch(t.throttlingMethod){case"provided":i=a=n=s.throttlingProvided;break;case"devtools":{let{cpuSlowdownMultiplier:m,requestLatencyMs:h}=o;n=`${r.formatNumber(m)}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:m,rttMs:h,throughputKbps:v}=o;n=`${r.formatNumber(m)}x slowdown (Simulated)`,a=`${r.formatMilliseconds(h)} TCP RTT, ${r.formatKbps(v)} throughput (Simulated)`,i=h===150&&v===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 d=p?void 0:`${t.screenEmulation.width}x${t.screenEmulation.height}, DPR ${t.screenEmulation.deviceScaleFactor}`;return{deviceEmulation:l,screenEmulation:d,cpuThrottling:n,networkThrottling:a,summary:i}}static showAsPassed(t){switch(t.scoreDisplayMode){case"manual":case"notApplicable":return!0;case"error":case"informative":return!1;default:return Number(t.score)>=te.PASS.minScore}}static calculateRating(t,n){if(n==="manual"||n==="notApplicable")return te.PASS.label;if(n==="error")return te.ERROR.label;if(t===null)return te.FAIL.label;let a=te.FAIL.label;return t>=te.PASS.minScore?a=te.PASS.label:t>=te.AVERAGE.minScore&&(a=te.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 I.isPluginCategory(t)}static shouldDisplayAsFraction(t,n){return t==="timespan"||t==="snapshot"||n?.categoryScoreDisplayMode==="fraction"}},Je={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",unscoredLabel:"Unscored",unscoredTitle:"This audit does not contribute to the overall category score."};var gi=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:--gi,__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 Un=()=>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"})}),Ze=()=>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"})}),Ke=()=>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"})]}),Xe=()=>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"})}),Tn=()=>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"})]}),Rn=()=>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"})}),Nn=()=>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"})}),Dn=()=>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"})}),zn=()=>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"})]}),jn=()=>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 xt=Pe(void 0),St=Pe({});function Mn(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 Hn(e){let{width:t,height:n}=e.configSettings.screenEmulation;return{width:t,height:n}}function Fn(e){let t=e.audits["screenshot-thumbnails"];return t&&t.details&&t.details.type==="filmstrip"&&t.details.items||void 0}function Ye(e,t){switch(e){case"navigation":return t.navigationDescription;case"timespan":return t.timespanDescription;case"snapshot":return t.snapshotDescription}}function B(){let e=Le(xt);if(!e)throw Error("useFlowResult must be called in the FlowResultContext");return e}function fi(...e){let[t,n]=ie(e.map(Mn));return $e(()=>{function a(){let i=e.map(Mn);i.every((o,r)=>o===t[r])||n(i)}return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[t]),t}function be(){let e=B(),[t,n]=fi("index","anchor");return Q(()=>{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=We(null);return qe(()=>{if(!n.current)return;let a=e();return n.current.append(a),()=>{n.current?.contains(a)&&n.current.removeChild(a)}},t),n}function On(){return Le(St)}var vi=500,$=()=>u("div",{className:"Separator",role:"separator"}),kt=({mode:e})=>u(R,{children:[e==="navigation"&&u(Ze,{}),e==="timespan"&&u(Ke,{}),e==="snapshot"&&u(Xe,{})]}),re=({mode:e})=>u("div",{className:"FlowSegment",children:[u("div",{className:"FlowSegment__top-line"}),e&&u(kt,{mode:e}),u("div",{className:"FlowSegment__bottom-line"})]}),bi=({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),vi);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"})},Qe=({lhr:e,width:t,height:n})=>{let a=Fn(e),i=Hn(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(R,{});let o;if(a?.length){if(o=a[a.length-1].data,e.gatherMode==="timespan")return u(bi,{frames:a,width:t,height:n})}else o=I.getFullPageScreenshot(e)?.screenshot.data;return u(R,{children:o&&u("img",{className:"FlowStepThumbnail",src:o,style:{width:t,height:n},alt:"Screenshot of a page tested by Lighthouse"})})};var Pt=function(e,t){return Pt=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])},Pt(e,t)};function Ee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Pt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var J=function(){return J=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},J.apply(this,arguments)};function Bn(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 et(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 S;(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"})(S||(S={}));var E;(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"})(E||(E={}));var ue;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ue||(ue={}));function At(e){return e.type===E.literal}function Gn(e){return e.type===E.argument}function tt(e){return e.type===E.number}function nt(e){return e.type===E.date}function at(e){return e.type===E.time}function it(e){return e.type===E.select}function ot(e){return e.type===E.plural}function Vn(e){return e.type===E.pound}function rt(e){return e.type===E.tag}function st(e){return!!(e&&typeof e=="object"&&e.type===ue.number)}function Ie(e){return!!(e&&typeof e=="object"&&e.type===ue.dateTime)}var Lt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;var yi=/(?:[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 $n(e){var t={};return e.replace(yi,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 U=function(){return U=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},U.apply(this,arguments)};var qn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Kn(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(qn).filter(function(m){return m.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 d=l[c];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:p})}return n}function _i(e){return e.replace(/^(.*?)-/,"")}var Wn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Xn=/^(@+)?(\+|#+)?[rs]?$/g,Ci=/(\*)(0+)|(#+)(0+)|(0+)/g,Yn=/^(0+)$/;function Jn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Xn,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 Qn(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 wi(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)),!Yn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Zn(e){var t={},n=Qn(e);return n||t}function ea(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=_i(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=U(U(U({},t),{notation:"scientific"}),i.options.reduce(function(p,c){return U(U({},p),Zn(c))},{}));continue;case"engineering":t=U(U(U({},t),{notation:"engineering"}),i.options.reduce(function(p,c){return U(U({},p),Zn(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(Ci,function(p,c,l,d,m,h){if(c)t.minimumIntegerDigits=l.length;else{if(d&&m)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(Yn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Wn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Wn,function(p,c,l,d,m,h){return l==="*"?t.minimumFractionDigits=c.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&h?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+h.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?t=U(U({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=U(U({},t),Jn(o)));continue}if(Xn.test(i.stem)){t=U(U({},t),Jn(i.stem));continue}var r=Qn(i.stem);r&&(t=U(U({},t),r));var s=wi(i.stem);s&&(t=U(U({},t),s))}return t}var Ue={"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 ta(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=xi(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 xi(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=Ue[a||""]||Ue[n||""]||Ue["".concat(n,"-001")]||Ue["001"];return i[0]}var Et,Si=new RegExp("^".concat(Lt.source,"*")),ki=new RegExp("".concat(Lt.source,"*$"));function k(e,t){return{start:e,end:t}}var Pi=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ai=!!String.fromCodePoint,Li=!!Object.fromEntries,Ei=!!String.prototype.codePointAt,Ii=!!String.prototype.trimStart,Ui=!!String.prototype.trimEnd,Ti=!!Number.isSafeInteger,Ri=Ti?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ut=!0;try{na=ra("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Ut=((Et=na.exec("a"))===null||Et===void 0?void 0:Et[0])==="a"}catch{Ut=!1}var na,aa=Pi?function(t,n,a){return t.startsWith(n,a)}:function(t,n,a){return t.slice(a,a+n.length)===n},Tt=Ai?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},ia=Li?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},oa=Ei?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}},Ni=Ii?function(t){return t.trimStart()}:function(t){return t.replace(Si,"")},Di=Ui?function(t){return t.trimEnd()}:function(t){return t.replace(ki,"")};function ra(e,t){return new RegExp(e,t)}var Rt;Ut?(It=ra("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Rt=function(t,n){var a;It.lastIndex=n;var i=It.exec(t);return(a=i[1])!==null&&a!==void 0?a:""}):Rt=function(t,n){for(var a=[];;){var i=oa(t,n);if(i===void 0||la(i)||Mi(i))break;a.push(i),n+=i>=65536?2:1}return Tt.apply(void 0,a)};var It,sa=(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:E.pound,location:k(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(S.UNMATCHED_CLOSING_TAG,k(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Nt(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:E.literal,value:"<".concat(i,"/>"),location:k(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()||!Nt(this.char()))return this.error(S.INVALID_TAG,k(s,this.clonePosition()));var p=this.clonePosition(),c=this.parseTagName();return i!==c?this.error(S.UNMATCHED_CLOSING_TAG,k(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:E.tag,value:i,children:r,location:k(a,this.clonePosition())},err:null}:this.error(S.INVALID_TAG,k(s,this.clonePosition())))}else return this.error(S.UNCLOSED_TAG,k(a,this.clonePosition()))}else return this.error(S.INVALID_TAG,k(a,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ji(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=k(a,this.clonePosition());return{val:{type:E.literal,value:i,location:p},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!zi(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 Tt.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(),Tt(a))},e.prototype.parseArgument=function(t,n){var a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(S.EMPTY_ARGUMENT,k(a,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(S.MALFORMED_ARGUMENT,k(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:E.argument,value:i,location:k(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(a,this.clonePosition())):this.parseArgumentOptions(t,n,i,a);default:return this.error(S.MALFORMED_ARGUMENT,k(a,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),a=Rt(this.message,n),i=n+a.length;this.bumpTo(i);var o=this.clonePosition(),r=k(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(S.EXPECT_ARGUMENT_TYPE,k(r,p));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=Di(d.val);if(m.length===0)return this.error(S.EXPECT_ARGUMENT_STYLE,k(this.clonePosition(),this.clonePosition()));var h=k(l,this.clonePosition());c={style:m,styleLocation:h}}var v=this.tryParseArgumentClose(i);if(v.err)return v;var _=k(i,this.clonePosition());if(c&&aa(c?.style,"::",0)){var f=Ni(c.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(f,c.styleLocation);return d.err?d:{val:{type:E.number,value:a,location:_,style:d.val},err:null}}else{if(f.length===0)return this.error(S.EXPECT_DATE_TIME_SKELETON,_);var g=f;this.locale&&(g=ta(f,this.locale));var m={type:ue.dateTime,pattern:g,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?$n(g):{}},y=s==="date"?E.date:E.time;return{val:{type:y,value:a,location:_,style:m},err:null}}}return{val:{type:s==="number"?E.number:s==="date"?E.date:E.time,value:a,location:_,style:(o=c?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS,k(C,ye({},C)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),A=0;if(s!=="select"&&x.value==="offset"){if(!this.bumpIf(":"))return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),x=this.parseIdentifierIfPossible(),A=d.val}var T=this.tryParsePluralOrSelectOptions(t,s,n,x);if(T.err)return T;var v=this.tryParseArgumentClose(i);if(v.err)return v;var D=k(i,this.clonePosition());return s==="select"?{val:{type:E.select,value:a,options:ia(T.val),location:D},err:null}:{val:{type:E.plural,value:a,options:ia(T.val),offset:A,pluralType:s==="plural"?"cardinal":"ordinal",location:D},err:null}}default:return this.error(S.INVALID_ARGUMENT_TYPE,k(r,p))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,k(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(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,k(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=Kn(t)}catch{return this.error(S.INVALID_NUMBER_SKELETON,n)}return{val:{type:ue.number,tokens:a,location:n,parsedOptions:this.shouldParseSkeletons?ea(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 d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR,S.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;l=k(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}else break}if(p.has(c))return this.error(n==="select"?S.DUPLICATE_SELECT_ARGUMENT_SELECTOR:S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c==="other"&&(r=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,k(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,n,a);if(v.err)return v;var _=this.tryParseArgumentClose(h);if(_.err)return _;s.push([c,{value:v.val,location:k(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"?S.EXPECT_SELECT_ARGUMENT_SELECTOR:S.EXPECT_PLURAL_ARGUMENT_SELECTOR,k(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(S.MISSING_OTHER_CLAUSE,k(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=k(i,this.clonePosition());return o?(r*=a,Ri(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=oa(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(aa(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()&&la(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 Nt(e){return e>=97&&e<=122||e>=65&&e<=90}function zi(e){return Nt(e)||e===47}function ji(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 la(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Mi(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 Dt(e){e.forEach(function(t){if(delete t.location,it(t)||ot(t))for(var n in t.options)delete t.options[n].location,Dt(t.options[n].value);else tt(t)&&st(t.style)||(nt(t)||at(t))&&Ie(t.style)?delete t.style.location:rt(t)&&Dt(t.children)})}function pa(e,t){t===void 0&&(t={}),t=ye({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new sa(e,t).parse();if(n.err){var a=SyntaxError(S[n.err.kind]);throw a.location=n.err.location,a.originalMessage=n.err.message,a}return t?.captureLocation||Dt(n.val),n.val}function lt(e,t){var n=t&&t.cache?t.cache:Vi,a=t&&t.serializer?t.serializer:Gi,i=t&&t.strategy?t.strategy:Fi;return i(e,{cache:n,serializer:a})}function Hi(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ua(e,t,n,a){var i=Hi(a)?a:n(a),o=t.get(i);return typeof o>"u"&&(o=e.call(this,a),t.set(i,o)),o}function ca(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 zt(e,t,n,a,i){return n.bind(t,e,a,i)}function Fi(e,t){var n=e.length===1?ua:ca;return zt(e,this,n,t.cache.create(),t.serializer)}function Oi(e,t){return zt(e,this,ca,t.cache.create(),t.serializer)}function Bi(e,t){return zt(e,this,ua,t.cache.create(),t.serializer)}var Gi=function(){return JSON.stringify(arguments)};function jt(){this.cache=Object.create(null)}jt.prototype.get=function(e){return this.cache[e]};jt.prototype.set=function(e,t){this.cache[e]=t};var Vi={create:function(){return new jt}},pt={variadic:Oi,monadic:Bi};var ce;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ce||(ce={}));var Te=(function(e){Ee(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 Mt=(function(e){Ee(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('", "'),'"'),ce.INVALID_VALUE,o)||this}return t})(Te);var ma=(function(e){Ee(t,e);function t(n,a,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(a),ce.INVALID_VALUE,i)||this}return t})(Te);var da=(function(e){Ee(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,'"'),ce.MISSING_VALUE,a)||this}return t})(Te);var j;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(j||(j={}));function $i(e){return e.length<2?e:e.reduce(function(t,n){var a=t[t.length-1];return!a||a.type!==j.literal||n.type!==j.literal?t.push(n):a.value+=n.value,t},[])}function qi(e){return typeof e=="function"}function Re(e,t,n,a,i,o,r){if(e.length===1&&At(e[0]))return[{type:j.literal,value:e[0].value}];for(var s=[],p=0,c=e;p<c.length;p++){var l=c[p];if(At(l)){s.push({type:j.literal,value:l.value});continue}if(Vn(l)){typeof o=="number"&&s.push({type:j.literal,value:n.getNumberFormat(t).format(o)});continue}var d=l.value;if(!(i&&d in i))throw new da(d,r);var m=i[d];if(Gn(l)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),s.push({type:typeof m=="string"?j.literal:j.object,value:m});continue}if(nt(l)){var h=typeof l.style=="string"?a.date[l.style]:Ie(l.style)?l.style.parsedOptions:void 0;s.push({type:j.literal,value:n.getDateTimeFormat(t,h).format(m)});continue}if(at(l)){var h=typeof l.style=="string"?a.time[l.style]:Ie(l.style)?l.style.parsedOptions:a.time.medium;s.push({type:j.literal,value:n.getDateTimeFormat(t,h).format(m)});continue}if(tt(l)){var h=typeof l.style=="string"?a.number[l.style]:st(l.style)?l.style.parsedOptions:void 0;h&&h.scale&&(m=m*(h.scale||1)),s.push({type:j.literal,value:n.getNumberFormat(t,h).format(m)});continue}if(rt(l)){var v=l.children,_=l.value,f=i[_];if(!qi(f))throw new ma(_,"function",r);var g=Re(v,t,n,a,i,o),y=f(g.map(function(A){return A.value}));Array.isArray(y)||(y=[y]),s.push.apply(s,y.map(function(A){return{type:typeof A=="string"?j.literal:j.object,value:A}}))}if(it(l)){var C=l.options[m]||l.options.other;if(!C)throw new Mt(l.value,m,Object.keys(l.options),r);s.push.apply(s,Re(C.value,t,n,a,i));continue}if(ot(l)){var C=l.options["=".concat(m)];if(!C){if(!Intl.PluralRules)throw new Te(`Intl.PluralRules is not available in this environment.
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
3
  `,ce.MISSING_INTL_API,r);var x=n.getPluralRules(t,{type:l.pluralType}).select(m-(l.offset||0));C=l.options[x]||l.options.other}if(!C)throw new Mt(l.value,m,Object.keys(l.options),r);s.push.apply(s,Re(C.value,t,n,a,i,m-(l.offset||0)));continue}}return $i(s)}function Wi(e,t){return t?J(J(J({},e||{}),t||{}),Object.keys(e).reduce(function(n,a){return n[a]=J(J({},e[a]),t[a]||{}),n},{})):e}function Ji(e,t){return t?Object.keys(e).reduce(function(n,a){return n[a]=Wi(e[a],t[a]),n},J({},e)):e}function Ht(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Zi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:lt(function(){for(var t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((t=Intl.NumberFormat).bind.apply(t,et([void 0],n,!1)))},{cache:Ht(e.number),strategy:pt.variadic}),getDateTimeFormat:lt(function(){for(var t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((t=Intl.DateTimeFormat).bind.apply(t,et([void 0],n,!1)))},{cache:Ht(e.dateTime),strategy:pt.variadic}),getPluralRules:lt(function(){for(var t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return new((t=Intl.PluralRules).bind.apply(t,et([void 0],n,!1)))},{cache:Ht(e.pluralRules),strategy:pt.variadic})}}var ha=(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 d=l.reduce(function(m,h){return!m.length||h.type!==j.literal||typeof m[m.length-1]!="string"?m.push(h.value):m[m.length-1]+=h.value,m},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(c){return Re(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=Bn(r,["formatters"]);this.ast=e.__parse(t,J(J({},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=Ji(e.formats,a),this.formatters=i&&i.formatters||Zi(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=pa,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 Ft=ha;var ut={literal:0,argument:1,number:2,date:3,time:4,select:5,plural:6,pound:7,tag:8};var zs=["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 Ki={number:{bytes:{maximumFractionDigits:0},milliseconds:{maximumFractionDigits:0},seconds:{minimumFractionDigits:1,maximumFractionDigits:1},extendedPercent:{maximumFractionDigits:2,style:"percent"}}};function ga(e,t=new Map){for(let n of e)if(!(n.type===ut.literal||n.type===ut.pound)&&(t.set(n.value,n),n.type===ut.plural))for(let a of Object.values(n.options))ga(a.value,t);return t}function Xi(e,t={},n){let a=ga(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!==ut.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 Yi(e){return e.replace(/'/g,"''").replace(/\\{/g,"'{").replace(/\\}/g,"'}")}function fa(e,t,n){e=Yi(e);let a=n==="en-XA"||n==="en-XL"?"de-DE":n,i=Ft.IntlMessageFormat||Ft,o=new i(e,a,Ki,{ignoreTag:!0}),r=Xi(o,t,e),s=o.format(r);if(typeof s!="string")throw new Error("unexpected formatted result");return s}var me=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(" "," ")}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)+" KiB"}formatBytesToMiB(t,n=void 0){return this._formatNumberWithGranularity(t/1048576,n)+" 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:3600*24,hour:3600,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 Ot={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",desktop:"Desktop",mobile:"Mobile",ratingPass:"Good",ratingAverage:"Average",ratingFail:"Poor",ratingError:"Error",navigationReportCount:`{numNavigation, plural,
4
4
  =1 {{numNavigation} navigation report}